[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorrect passing of argc argv with multiple redirects
From: |
Eduardo Bustamante |
Subject: |
Re: Incorrect passing of argc argv with multiple redirects |
Date: |
Tue, 30 Jul 2019 10:56:29 -0700 |
On Tue, Jul 30, 2019 at 10:35 AM Morgan McClure
<mcclure.morgan@gmail.com> wrote:
(...)
> ./a.out foo > /dev/null 2&>1; echo $?
> returns 3 NOT as expected
Are you 100% certain the `2&>1` redirection means what you think it
means? (hint: I recommend reading the "Redirecting Standard Output and
Standard Error" section of the bash manual, check if the leading `2`
is valid there).