Bug 566079
| Summary: | dd should have a --quiet option | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | JW <ohtmvyyn> |
| Component: | coreutils | Assignee: | Ondrej Vasik <ovasik> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 12 | CC: | kdudka, ovasik, twaugh |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-02-17 12:43:12 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
JW
2010-02-17 04:57:29 UTC
In POSIX is written that dd shall write that diagnostic statistical output about dd-ed records to stderr upon successful completition (https://www.opengroup.org/onlinepubs/009695399/utilities/dd.html). Therefore that option will not follow POSIX and therefore is IMHO unlikely to be added. There is already a difference between succesful completition of dd and error with output you want. That difference is exitcode - "$?" ... for 0 you want to drop stderr, for nonzero you want to show it. This should be IMHO easy to achieve if you really want it. (In reply to comment #0) > Description of problem: > dd should have a --quiet option to suppress the often unimportant statistical > output (ie. 1+0 records in, 1+0 records out, 4096 bytes ...). Why you might You can use the option 'status=noxfer' to suppress the third line, which may be useful for scripts parsing the error output of dd. If you don't need the error output, it's safe to redirect it to /dev/null, as you already figured out. > 5. dd: invalid option -- '-' (THIS IS ANOTHER BUG - should be '--quiet')
Not really bug... just the way how getopt_long behaves and parses argv. If you think that there is a way how to make it better without regressions, feel free to propose patch on bug-gnulib .
Closing this bugreport NOTABUG - input/output records required by POSIX, transfer status could be supressed easily. If you want to filter input/output records from stderr, write a simple wrapper script around and do not show stderr for the case of dd exit code 0.
|