From: Herbert Xu <herbert@gondor.apana.org.au>
To: наб <nabijaczleweli@nabijaczleweli.xyz>
Cc: dash@vger.kernel.org, harald@gigawatt.nl
Subject: Re: [PATCH v2 1/3] parser: fixredir: invalid redirections are run-time, not syntax
Date: Thu, 5 Jan 2023 17:43:54 +0800 [thread overview]
Message-ID: <Y7ab2uSkRRw++6Me@gondor.apana.org.au> (raw)
In-Reply-To: <3a7ba3fa786e34cde8ab158cb8578f0d39cf655e.1670979949.git.nabijaczleweli@nabijaczleweli.xyz>
наб <nabijaczleweli@nabijaczleweli.xyz> wrote:
> [-- text/plain, encoding quoted-printable, charset: us-ascii, 33 lines --]
>
> This fixes a long-standing bug where
> echo 'echo >&a' | sh
> errors out with
> sh: 2: Syntax error: Bad fd number
> despite the error being on line 1
>
> This patch makes the error
> sh: 1: Bad fd number: a
> as expected
>
> Adapted-from: https://github.com/hvdijk/gwsh/commit/d279523041c1c380d64b6dec7760feba20bbf6b5
> ---
> src/parser.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next prev parent reply other threads:[~2023-01-05 9:44 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-13 22:17 [PATCH] input: preadfd: read standard input byte-wise наб
2022-12-13 22:37 ` Harald van Dijk
2022-12-14 1:05 ` наб
2022-12-14 1:06 ` [PATCH v2 1/3] parser: fixredir: invalid redirections are run-time, not syntax наб
2023-01-05 9:43 ` Herbert Xu [this message]
2022-12-14 1:06 ` [PATCH v2 2/3] parser: synerror: explicitly consume the entire invalid line наб
2023-01-03 1:53 ` Herbert Xu
2023-01-03 5:32 ` [PATCH] input: Eat rest of line upon reset Herbert Xu
2023-01-03 11:47 ` [PATCH v2 2/3] parser: synerror: explicitly consume the entire invalid line Harald van Dijk
2023-01-04 9:51 ` Herbert Xu
2023-01-04 11:25 ` Harald van Dijk
2023-01-04 14:10 ` Herbert Xu
2023-01-04 14:30 ` Harald van Dijk
2023-01-04 14:41 ` Herbert Xu
2023-01-04 14:59 ` Harald van Dijk
2023-01-05 7:12 ` [PATCH] input: Check for int_pending while clearing input Herbert Xu
2022-12-14 1:06 ` [PATCH v2 3/3] input: preadfd: read standard input byte-wise наб
2023-01-03 6:15 ` [v3 PATCH] input: Read " Herbert Xu
2023-01-03 11:54 ` Harald van Dijk
2023-01-04 8:59 ` Herbert Xu
2023-01-04 11:18 ` Harald van Dijk
2023-01-05 7:26 ` [PATCH] input: Only skip blank lines on PS1 Herbert Xu
2023-01-05 8:33 ` Harald van Dijk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y7ab2uSkRRw++6Me@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=dash@vger.kernel.org \
--cc=harald@gigawatt.nl \
--cc=nabijaczleweli@nabijaczleweli.xyz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).