Project

General

Profile

Bug #1154

cpio needs a quiet option

Added by Gary Mills about 9 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2011-06-26
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

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.

History

#1

Updated by Gordon Ross about 9 years ago

Linux and Mac OS use --quiet for this. Should we too?

#2

Updated by Alexander Eremin about 9 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.

#3

Updated by Gary Mills about 8 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

#4

Updated by Rich Lowe about 8 years ago

  • Category set to cmd - userland programs
  • Status changed from In Progress to Resolved
  • % Done changed from 80 to 100
  • Tags deleted (needs-triage)

Resolved in r13767 commit:8c906b14afbd

Also available in: Atom PDF