cpio needs a quiet option
I've written a few scripts that use `cpio' internally.
They all print `NN blocks' to standard error. I could
redirect stderr to /dev/null but that would suppress
all error messages. A `-q' option to suppress only the
block count message would solve this annoyance.
Updated by Alexander Eremin almost 10 years ago
Gordon Ross wrote:
Linux and Mac OS use --quiet for this. Should we too?
Why we should look at Linux.. What I love in sun version: absence of long-options, it's convenient in scripts. Sure it's difficult to imagine some short option for something like '--strip-trailing-slashes', but 'q' for 'quiet' is quite enough.
Updated by Gary Mills almost 9 years ago
- Status changed from New to In Progress
- Assignee set to Gary Mills
- % Done changed from 0 to 80
Here's what the fixed cpio does:
$ ls | cpio -oc > /dev/null 1518 blocks $ ls | ./cpio -oc > /dev/null 1518 blocks $ ls | ./cpio -ocq > /dev/null