From owner-freebsd-current@FreeBSD.ORG Thu Jan 14 18:10:29 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D015106568B for ; Thu, 14 Jan 2010 18:10:29 +0000 (UTC) (envelope-from antoine.brodin.freebsd@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id 0B2A98FC08 for ; Thu, 14 Jan 2010 18:10:28 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 22so221812eye.9 for ; Thu, 14 Jan 2010 10:10:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=NMo5z7/T8xvjyRN5U1C9DvOWcrj/iU4NtQH3YimYt34=; b=GLOtfhepi3I3eI9bGYFgQTfS7TEmUwyvrba2AIMtATj+zWHprAdEFySmceqFdwZsBz Lr51i80F4PpFDtegjMbCF6wLxygf2rlO4qYElOXhUtM3qBwj9gZ4u5mXnWUioyedmohG AXhX2I2cBYLmPj72AS+pV7uMJTmP2dYIKK/pQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; b=c7XxH5tIMxYWrJFijVWqzQ/nGfVbOZBmc5XQhcehdfQGH4O7JCp2CtfHLmY/Xiktv7 R+naKHwdPdDTLH+TtWmfwHeoLjj35YnFr/6rc9/UD6MeUmzDUefwTVSneTO0kw9xxOAm glP9JwjOVtkdqnk1LRMraHGP+4GSGAH2+5L6I= Received: by 10.213.110.210 with SMTP id o18mr1145679ebp.13.1263491291647; Thu, 14 Jan 2010 09:48:11 -0800 (PST) Received: from peanut.dreadbsd.org (mna75-2-82-67-196-50.fbx.proxad.net [82.67.196.50]) by mx.google.com with ESMTPS id 13sm707361ewy.5.2010.01.14.09.48.01 (version=SSLv3 cipher=RC4-MD5); Thu, 14 Jan 2010 09:48:02 -0800 (PST) Sender: Antoine Brodin Date: Thu, 14 Jan 2010 18:47:58 +0100 From: Antoine Brodin To: Jeff Blank Message-Id: <20100114184758.3c4e18ca.antoine@FreeBSD.org> In-Reply-To: <20100114155755.GA77799@mr-happy.com> References: <20100114155755.GA77799@mr-happy.com> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.5; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Regression in sh(1) ? (Was: make delete-old fails when removing catpages) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2010 18:10:29 -0000 Jeff Blank wrote: > Hi, > > 9-CURRENT, csups around 2000 UTC yesterday and 0100 UTC today, fails > when removing some catpages during 'make delete-old'. Output below is > from after the initial failure, and context had left my scrollback > buffer, but the first file that failed was /usr/share/man/cat1/rcp.1.gz. > I removed it by hand with no issues and ran again: > > ========== > # make delete-old > >>> Removing old files (only deletes safe to delete libs) > remove /usr/share/man/cat1/ipftest.1.gz? *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > # rm /usr/share/man/cat1/ipftest.1.gz > # make delete-old > >>> Removing old files (only deletes safe to delete libs) > remove /usr/share/man/cat1/ipresend.1.gz? *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. [Snip] 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? $ %%% Cheers, Antoine