[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Declaring variables as local effects command status $?
From: |
Chet Ramey |
Subject: |
Re: Declaring variables as local effects command status $? |
Date: |
Fri, 06 Feb 2009 16:02:26 -0500 |
User-agent: |
Thunderbird 2.0.0.19 (Macintosh/20081209) |
Michael Rendell wrote:
> Bash Version: 3.2
> Patch Level: 25
> Release Status: release
>
> Description:
> Declaring a variable as local appears to prevent $? from being set;
> see script below.
`local' is a builtin command; you asked for and received its exit status.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/