Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stdbuf: move help strings to markdown file #4792

Merged
merged 9 commits into from
Apr 27, 2023

Conversation

m11o
Copy link
Contributor

@m11o m11o commented Apr 26, 2023

issue: #4368

stdbuf --help outputs follow.

$ ./target/debug/stdbuf --help
Run COMMAND, with modified buffering operations for its standard streams.

Mandatory arguments to long options are mandatory for short options too.

Usage: ./target/debug/stdbuf [OPTION]... COMMAND

Options:
  -i, --input <MODE>   adjust standard input stream buffering
  -o, --output <MODE>  adjust standard output stream buffering
  -e, --error <MODE>   adjust standard error stream buffering
  -h, --help           Print help
  -V, --version        Print version

If MODE is 'L' the corresponding stream will be line buffered.
This option is invalid with standard input.

If MODE is '0' the corresponding stream will be unbuffered.

Otherwise, MODE is a number which may be followed by one of the following:

KB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.
In this case the corresponding stream will be fully buffered with the buffer size set to MODE bytes.

NOTE: If COMMAND adjusts the buffering of its standard streams ('tee' does for e.g.) then that will override corresponding settings changed by 'stdbuf'.
Also some filters (like 'dd' and 'cat' etc.) don't use streams for I/O, and are thus unaffected by 'stdbuf' settings.

src/uu/stdbuf/stdbuf.md Outdated Show resolved Hide resolved
src/uu/stdbuf/stdbuf.md Outdated Show resolved Hide resolved
src/uu/stdbuf/stdbuf.md Outdated Show resolved Hide resolved
src/uu/stdbuf/stdbuf.md Outdated Show resolved Hide resolved
src/uu/stdbuf/stdbuf.md Outdated Show resolved Hide resolved
src/uu/stdbuf/stdbuf.md Outdated Show resolved Hide resolved
src/uu/stdbuf/stdbuf.md Outdated Show resolved Hide resolved
m11o and others added 7 commits April 27, 2023 09:34
Co-authored-by: Sylvestre Ledru <[email protected]>
Co-authored-by: Sylvestre Ledru <[email protected]>
Co-authored-by: Sylvestre Ledru <[email protected]>
Co-authored-by: Sylvestre Ledru <[email protected]>
Co-authored-by: Sylvestre Ledru <[email protected]>
Co-authored-by: Sylvestre Ledru <[email protected]>
Co-authored-by: Sylvestre Ledru <[email protected]>
@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/tail-2/inotify-dir-recreate is no longer failing!

@m11o m11o requested a review from sylvestre April 27, 2023 02:58
@sylvestre sylvestre merged commit 746331c into uutils:main Apr 27, 2023
@m11o m11o deleted the stdbuf-move-strings-to-md-file branch April 27, 2023 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants