Re: [PATCH] rev: fix some issues

Chet Ramey <[email protected]> Thu, 7 May 2026 15:07:36 -0400
Newsgroups gmane.comp.shells.bash.bugs
Organization ITS, Case Western Reserve University
Message-ID <[email protected]>
On 5/3/26 6:29 PM, Grisha Levit wrote:

> @@ -221,15 +224,17 @@ rev_internal(WORD_LIST *list)
>   /* for each file */
>   
>       if (l == 0)
> -      fd = 0;
> +      fd = -1;

This would prevent you from reading stdin, no?

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc (application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE-----

wmMEABEIACMWIQR8ATX7CIqvbGbGULm7WGnwZOp0qwUCafzi+AUDAAAAAAAKCRC7WGnwZOp0q4uI
AJ0T2DB0p0Wv3PIxOyFmamrxxkFM5QCcCSt6EqU61dTzGhnThSyQVdcfSqc=
=Ukou
-----END PGP SIGNATURE-----