Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use unbuffered for combining with tee so that 'echo -n' works on terminal. If this -u is removed then 'stdbuf -o L' should be used instead since timestamp's stdout is not the TTY; it is tee. So the default ends up being block buffering. - Now supports default block buffering for non-tee mode in bulk. This may surprise people using 'tail' but is more efficient. It can be changed to line buffered mode, from block, with 'stdbuf -o B' before the timestamp call in non-tee mode.
- Loading branch information
Showing
2 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters