bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about the return value of 'local'


From: Francis Moreau
Subject: Re: Question about the return value of 'local'
Date: Thu, 13 Dec 2012 09:56:17 +0100

On Thu, Dec 13, 2012 at 9:44 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> 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.
>

I see thanks.

Somehow I thought that help(1) would have given nothing more nothing
less than what was described in the manual.

--
Francis



reply via email to

[Prev in Thread] Current Thread [Next in Thread]