[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: keeping tar quiet in script



On Sat, Mar 31, 2007 at 05:01:31PM -0300, Jorge Peixoto de Morais Neto wrote:
> >
> >
> >What about the classical "1> /dev/null 2>&1"?
> 
> This probably has identical behavior identical to &> /dev/null, but is
> longer to type.
> &>/dev/null seems less portable. Here I have bash and dash, and &>/dev/null
> does not work under dash. "1> /dev/null 2>&1" works everywhere.
> 
The latter is POSIX-compliant.  I believe that the "&>" notation is a
bashism.

Regards,

-Roberto

-- 
Roberto C. Sánchez
http://people.connexer.com/~roberto
http://www.connexer.com

Attachment: signature.asc
Description: Digital signature


Reply to: