Re: Regression in sh(1) ? (Was: make delete-old fails when removing catpages)

From: Jilles Tjoelker <jilles_at_stack.nl>
Date: Fri, 15 Jan 2010 00:33:50 +0100
On Thu, Jan 14, 2010 at 06:47:58PM +0100, 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? $ 
> %%%

This is because src/Makefile.inc1 had a bug, 'exec' is required to have
a redirection persist after the command. I have fixed this.

-- 
Jilles Tjoelker
Received on Thu Jan 14 2010 - 22:33:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC