[pacman-dev] [PATCH 5/7] pacman-key: hide output of executed commands on logic checks
ivan.kanak at gmail.com
Thu Apr 21 13:10:54 EDT 2011
On 21 April 2011 20:00, Dan McGee <dpmcgee at gmail.com> wrote:
> On Thu, Apr 21, 2011 at 8:59 AM, <ivan.kanak at gmail.com> wrote:
> > From: Ivan Kanakarakis <ivan.kanak at gmail.com>
> > This commit correctly redirects to /dev/null the output of several
> > commands that get executed on logic checks.
> > Signed-off-by: Ivan Kanakarakis <ivan.kanak at gmail.com>
> Why? I personally hate losing everything, especially stderr, to the
> trap that is /dev/null. Once there is problem most people like to know
> what is actually going on rather than our likely oversimplified error
Of the 5 changes in this commit the last 2 hid stderr too.
I'm used to hiding all output from a command in a logic check,
and extensively checking return codes (provided the command
returns different error codes for each failing case).
I also see this as a more uniform style. Not something really important.
Ivan c00kiemon5ter V Kanak
More information about the pacman-dev