Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15281 > unrolled thread

Re: Incorrect passing of argc argv with multiple redirects

Started byEduardo Bustamante <dualbus@gmail.com>
First post2019-07-30 10:56 -0700
Last post2019-07-30 10:56 -0700
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Incorrect passing of argc argv with multiple redirects Eduardo Bustamante <dualbus@gmail.com> - 2019-07-30 10:56 -0700

#15281 — Re: Incorrect passing of argc argv with multiple redirects

FromEduardo Bustamante <dualbus@gmail.com>
Date2019-07-30 10:56 -0700
SubjectRe: Incorrect passing of argc argv with multiple redirects
Message-ID<mailman.285.1564509405.1985.bug-bash@gnu.org>
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).

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web