From owner-freebsd-questions@FreeBSD.ORG Thu Jan 10 01:23:17 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 16EA6E47 for ; Thu, 10 Jan 2013 01:23:17 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id E37D4C27 for ; Thu, 10 Jan 2013 01:23:16 +0000 (UTC) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.39]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id E8E6CA72A90 for ; Wed, 9 Jan 2013 20:23:15 -0500 (EST) Received: (qmail 6952 invoked from network); 10 Jan 2013 01:23:15 -0000 Received: by simscan 1.4.0 ppid: 16654, pid: 24134, t: 0.7022s scanners: clamav: m: Received: from unknown (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 10 Jan 2013 01:23:14 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.8]) by be-well.ilk.org (Postfix) with ESMTP id 885D933C32 for ; Wed, 9 Jan 2013 20:23:07 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 0364839855; Wed, 9 Jan 2013 20:23:06 -0500 (EST) From: Lowell Gilbert To: FreeBSD questions Subject: Re: sh script problem with capturing return code References: <50EC9009.3030305@a1poweruser.com> <20130108224626.8c2d89cd.freebsd@edvax.de> <50EC99F2.3020404@a1poweruser.com> <44d2xevlhb.fsf@lowell-desk.lan> <50ED88CF.7060308@a1poweruser.com> <448v82unxb.fsf@lowell-desk.lan> <444niqum7n.fsf@lowell-desk.lan> <44zk0it6t5.fsf@lowell-desk.lan> Date: Wed, 09 Jan 2013 20:23:06 -0500 In-Reply-To: <44zk0it6t5.fsf@lowell-desk.lan> (Lowell Gilbert's message of "Wed, 09 Jan 2013 15:55:34 -0500") Message-ID: <44r4ltu8zp.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2013 01:23:17 -0000 Lowell Gilbert writes: > I think it's a real bug, and the test cases don't cover "extra" elements > at all. Now I just have to figure out the right fix. I'm pretty sure that the fix is just to set rval on jumping to the "extra" tag in vwalk() in src/usr.sbin/mtree/verify.c. But my hot water heater just exploded, so I may not look at code for a few more days.