Date: Sun, 03 Nov 2013 19:53:10 -0800 From: Colin Percival <cperciva@freebsd.org> To: Eitan Adler <lists@eitanadler.com> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org>, Jilles Tjoelker <jilles@stack.nl> Subject: Re: Automated submission of kernel panic reports Message-ID: <52771A26.1020102@freebsd.org> In-Reply-To: <CAF6rxgm9Ua1CRsN%2B1n6B1nfMAo2sd=A8BH9firkQwLXypSaohw@mail.gmail.com> References: <526F8EB3.1040205@freebsd.org> <20131103212950.GA22571@stack.nl> <52770D8E.2030906@freebsd.org> <CAF6rxgm9Ua1CRsN%2B1n6B1nfMAo2sd=A8BH9firkQwLXypSaohw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/03/13 19:13, Eitan Adler wrote: > On Sun, Nov 3, 2013 at 9:59 PM, Colin Percival <cperciva@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52771A26.1020102>