Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Rusty Bird Newsgroups: gnu.bash.bug Subject: Re: 'foo > >(bar)' doesn't set $! for external foo not invoked via 'command' Date: Mon, 20 Jul 2020 11:14:39 +0000 Lines: 44 Approved: bug-bash@gnu.org Message-ID: References: <20200719204836.GA1184@mutt> <20200720102136.GA1147@mutt> <20200720111439.GA1634@mutt> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" X-Trace: usenet.stanford.edu 1595243702 26614 209.51.188.17 (20 Jul 2020 11:15:02 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org To: =?utf-8?B?T8SfdXo=?= Envelope-to: bug-bash@gnu.org X-EA-Auth: kt1k8VjYrSIskVAiqKV/5KMG2HTYtFV5FyWvjtoSF7xRkUFhJnlQYBQzAwTPdfHxt7WFp4OwSFEurlTZ+9TS2GQngv+6KDKlRIQx6BrycGM= Mail-Followup-To: =?utf-8?B?T8SfdXo=?= , bug-bash@gnu.org Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=213.182.54.6; envelope-from=rustybird@net-c.com; helo=relay-1.mailobj.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/20 06:21:42 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20200720111439.GA1634@mutt> X-Mailman-Original-References: <20200719204836.GA1184@mutt> <20200720102136.GA1147@mutt> Xref: csiph.com gnu.bash.bug:16590 --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable O=C4=9Fuz: > `>&"$out" is very ugly though, it'd be nice if `{var}' thing worked at > the RHS of redirection operator, like `>&{var}`, which, on bash 5.0.11, > ignores `&' -another bug?- and redirects stdout to a file named `{var}'. Probably more backwards compatibility than a bug - '>&word' (with word neither a number nor a dash) is an alternative form of '&>word': https://www.gnu.org/software/bash/manual/html_node/Redirections.html#Redire= cting-Standard-Output-and-Standard-Error Rusty --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEhLWbz8YrEp/hsG0ERp149HqvKt8FAl8VfJ9fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDg0 QjU5QkNGQzYyQjEyOUZFMUIwNkQwNDQ2OUQ3OEY0N0FBRjJBREYACgkQRp149Hqv Kt8loQ//Vqkc9q+P9d/tnUU98Sy13qAqeeBQQUOFyxemv17PJbrHjXm+hwVjbrjE gCCAAJFdvKH2objdOvpzxz0IPi4umJS7nPDB4SyYEdw+pMmq7euRpzuesRkgNrFc 203+IDNiuZWqVuXvP2bBf32pyIqPkFm5KwdoQgGUe0t2hnm3iCnqAfGuNKfYJjEq XZXduUwabPTN8I3MO+uJLoqhI4ymJ7NDVa3pErs55jQ5Q3utuy8qlA63STC6u2lf 3ZC+uZm1cJSi4YCWu7ZYA6jnHWPtXtyWJ4IldUWy03bOqFbiLHV7/xt+0+Ilbwsx FJbAtiwOlHwCaaV4jZ7z5Q7eybxvNIQwUa76mmE7N0BzDWcxuzSWt7Now5vZYxwd ApDPNpauIqOpEZqfhoauYwCvVUEgG7zLNRmzCnpYzFIWNHzLBUcIySD4/XYAaQ9O Y9LbLMk6S90ZWy0yXX/wBsp3nykn9og5vQVVG38J6/Nl5pH63NvCVrmq0VVbr6Iy 8dJlUgxdE5fvOI9IyEkmRNkKMLY7P43nVlY6d98ui70eaWNDQCzxo+EO6+rRjnUj jIBA0BUV/Arz8idk94JtfKgS9N2ivZdVz3ZOP+r9ib0q3OkDxoZ5myjFlMwy675m IgD+64C1jEKX8oqdKOeRLg/9abCW8B2N1WR9KJOBsVQRrtdvpD8= =D0ud -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--