Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 2010 00:33:50 +0100
From:      Jilles Tjoelker <jilles@stack.nl>
To:        Antoine Brodin <antoine@FreeBSD.org>
Cc:        freebsd-current@freebsd.org, Jeff Blank <jfb@mr-happy.com>
Subject:   Re: Regression in sh(1) ? (Was: make delete-old fails when removing catpages)
Message-ID:  <20100114233350.GA77512@stack.nl>
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 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100114233350.GA77512>