Automated submission of kernel panic reports
Colin Percival
cperciva at freebsd.org
Mon Nov 4 03:54:49 UTC 2013
On 11/03/13 19:13, Eitan Adler wrote:
> On Sun, Nov 3, 2013 at 9:59 PM, Colin Percival <cperciva at 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
More information about the freebsd-hackers
mailing list