[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about the return value of 'local'
From: |
Andreas Schwab |
Subject: |
Re: Question about the return value of 'local' |
Date: |
Thu, 13 Dec 2012 09:44:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.90 (gnu/linux) |
Francis Moreau <francis.moro@gmail.com> writes:
> The help of 'local' is rather obscure about the description on its return
> value:
>
> Returns success unless an invalid option is supplied, an
> error occurs, or the shell is not executing a function.
>
> "an error occurs" is rather meaningless IMHO.
See the manual for an alternative description:
The return status is zero unless `local' is used outside a
function, an invalid NAME is supplied, or NAME is a readonly
variable.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Question about the return value of 'local', Francis Moreau, 2012/12/13
- Re: Question about the return value of 'local',
Andreas Schwab <=
- Re: Question about the return value of 'local', Francis Moreau, 2012/12/13
- Re: Question about the return value of 'local', Chet Ramey, 2012/12/13
- Re: Question about the return value of 'local', Francis Moreau, 2012/12/14
- Re: Question about the return value of 'local', Greg Wooledge, 2012/12/14
- Re: Question about the return value of 'local', Francis Moreau, 2012/12/14
- Re: Question about the return value of 'local', Chet Ramey, 2012/12/14
- Re: Question about the return value of 'local', Chet Ramey, 2012/12/14
- Re: Question about the return value of 'local', Dan Douglas, 2012/12/14
- Re: Question about the return value of 'local', Bill Gradwohl, 2012/12/14
- Re: Question about the return value of 'local', Steven W. Orr, 2012/12/14