Date: Thu, 14 Jan 2010 14:25:49 -0500 From: Chet Ramey <chet.ramey@case.edu> To: Antoine Brodin <antoine@FreeBSD.org> Cc: freebsd-current@freebsd.org, chet.ramey@case.edu, Jeff Blank <jfb@mr-happy.com> Subject: Re: Regression in sh(1) ? (Was: make delete-old fails when removing catpages) Message-ID: <4B4F6FBD.5090707@case.edu> In-Reply-To: <20100114184758.3c4e18ca.antoine@FreeBSD.org> References: <20100114155755.GA77799@mr-happy.com> <20100114184758.3c4e18ca.antoine@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1/14/10 12:47 PM, Antoine Brodin wrote: > This seems to be a regression in sh(1). > Simple test case: > This succeeds on stable/8: > %%% >> sh > $ touch /tmp/foo; 3<&0; echo /tmp/foo | while read i; do rm -vi ${i} <&3 ; done > remove /tmp/foo? y > /tmp/foo > %%% > > and fails on head: > %%% >> sh > $ touch /tmp/foo; 3<&0; echo /tmp/foo | while read i; do rm -vi ${i} <&3 ; done > remove /tmp/foo? $ > %%% If these are the actual commands that fail, this is more of a bug fix than a regression. The command "3<&0" is not supposed to be equivalent to "exec 3<&0", and the effects of the redirection should not persist in the calling shell. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B4F6FBD.5090707>