[CentOS] Bugs in yum update

William L. Maltby CentOS4Bill at triad.rr.com
Tue Jan 13 16:01:54 UTC 2009

On Tue, 2009-01-13 at 10:40 -0500, Stephen Harris wrote:
> On Tue, Jan 13, 2009 at 10:36:03AM -0500, William L. Maltby wrote:
> > When you redirected stderr, with 2>&1 (btw, &> is shorthand for that)
> &> is a csh-ism and also in bash.  It's not correct in other sh-like shells,
> so don't use it if you want to do portable programming.  In particular
> don't use it in profile.d  (Fedora 10, I'm looking at you!) ecause people
> using ksh (for example) as their shell will get errors.

On top of that, I inadvertently ignored the fact that stdout was being
piped. In that case the "shorthand" does not do what is wanted. It is
really only appropriate when sending the two outputs to a file.


More information about the CentOS mailing list