From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 4 03:54:49 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A53C1B34 for ; Mon, 4 Nov 2013 03:54:49 +0000 (UTC) (envelope-from bounces+73574-4a99-freebsd-hackers=freebsd.org@sendgrid.me) Received: from o3.shared.sendgrid.net (o3.shared.sendgrid.net [208.117.48.85]) by mx1.freebsd.org (Postfix) with SMTP id 421EE2571 for ; Mon, 4 Nov 2013 03:54:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info; h=from:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; s=smtpapi; bh=lv8EvQIc7AwIgA2DWBxmYYfOZ6g=; b=ux71CNDwr4iWc605w8 yaePnKch2BeUmicKRNC9/ep0LIx/EvSV6/Hp1Jmh+LPWDHLk0b8Zo5+4vE4m7br9 dQ6ZLLWIZA6VWaAj5pbmtstqGQDnijiyf7YZs3+JD5qNcbFPDhpTNNXfRtassv0f wZKFPOfCVssltpfc9EiIn4oNs= Received: by filter-188.sjc1.sendgrid.net with SMTP id filter-188.8732.52771A871 Mon, 04 Nov 2013 03:54:47 +0000 (GMT) Received: from mail.tarsnap.com (unknown [10.60.208.13]) by mi35 (SG) with ESMTP id 142213fa19c.5224.1d5d6b for ; Sun, 03 Nov 2013 21:54:47 -0600 (CST) Received: (qmail 36232 invoked from network); 4 Nov 2013 03:54:46 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by ec2-107-20-205-189.compute-1.amazonaws.com with ESMTP; 4 Nov 2013 03:54:46 -0000 Received: (qmail 41270 invoked from network); 4 Nov 2013 03:53:10 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 4 Nov 2013 03:53:10 -0000 Message-ID: <52771A26.1020102@freebsd.org> Date: Sun, 03 Nov 2013 19:53:10 -0800 From: Colin Percival User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Eitan Adler Subject: Re: Automated submission of kernel panic reports References: <526F8EB3.1040205@freebsd.org> <20131103212950.GA22571@stack.nl> <52770D8E.2030906@freebsd.org> In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SG-EID: W2XBZA0V/n0voZZ6SjDkgjXvzGvkLIaljy40FLIRIHTVMXCc7ynl2WKQUz0qqp0c8Up126TZIW6AEQOLpK8FO0BfXRyOmVHfmA0e6u8e8Kq1a0sQvHaPWIRs8HrVDMSDSKVOcjBw74yyVk17dMWsI1BQBokjz7FbJVBa2ZUW3GU= Cc: FreeBSD Hackers , Jilles Tjoelker X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Nov 2013 03:54:49 -0000 On 11/03/13 19:13, Eitan Adler wrote: > On Sun, Nov 3, 2013 at 9:59 PM, Colin Percival wrote: >> Wow, I had no idea. I guess it never occurred to me that 'local' would >> even *have* an exit status... > > It can even exit non-zero: > $ foo() { readonly bar; local bar="f"; echo $?; }; foo; > local: bar: is read only > 2 Aha! I was thinking "but how could it ever fail?", and read-only variables never occurred to me. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid