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

Re: logging apt-get/dpkg activity



Joey Hess <joeyh@debian.org> writes:

> Bob Hilliard wrote:
>>      The redirection " 2>&1" isn't portable - it doesn't work with
>> /bin/dash.
>
> Yes it is, and yes it does.
>
> joey@dragon:~>dash
> $ perl -e 'print STDERR "foo\n"' >/dev/null 
> foo
> $ perl -e 'print STDERR "foo\n"' >/dev/null 2>&1
> $ 

     My bad.  I was thinking of the `&>' construct.

Regards,

Bob
-- 
   _
  |_)  _  |_    Robert D. Hilliard        <hilliard@debian.org>
  |_) (_) |_)   1294 S.W. Seagull Way     <bob@bobhilliard.net>
                Palm City, FL 34990 USA   GPG Key ID: 390D6559 
                                            



Reply to: