Code Monkey home page Code Monkey logo

yes's Introduction

yes -- be repetitively affirmative

This is an implementation of the yes command.

Usage

yes [word]

Description

yes will output word, or, by default, y, forever.

yes's People

Contributors

cgati avatar cristicbz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

yes's Issues

Only first argument is printed

Running yes with more than one argument ignores other argument and does not print them.

Example:

./yes a b
a
a
a
..

Expected:

./yes a b
a b
a b
a b
..

This is different from both GNU binutils, uutils and bsdutils which print all arguments.

Recommendations for naming?

So I decided to package yes for Fedora and it definitely conflicts with coreutils' yes binary. Do you think I should use rust-yes binary name or yes-rs or ...? What about package name?

fill_up_buffer doesn't fill up as much as it could

fill_up_buffer keeps doubling the amount it fills with each iteration, but this means that it doesn't fill up as much as it could.

For example, let's say the buffer size is 16 bytes, and the output slice is 3 bytes. fill_up_buffer will end up producing a 12-byte result when it could have produced a 15-byte result.

Incidentally, is doubling the buffer length over and over actually faster than just reading the output slice into the buffer repeatedly?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.