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

Jilles Tjoelker jilles at stack.nl
Thu Jan 14 23:33:52 UTC 2010


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


More information about the freebsd-current mailing list