[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unable to capture return value using backticks and local
From: |
Chet Ramey |
Subject: |
Re: unable to capture return value using backticks and local |
Date: |
Tue, 08 Aug 2006 23:56:40 -0400 |
User-agent: |
Thunderbird 1.5.0.5 (Macintosh/20060719) |
Adam Monsen wrote:
> Bash Version: 3.1
> Patch Level: 7
> Release Status: release
>
> Description:
> When a variable is declared local and the assigned value is
> gathered from
> a command enclosed in backticks, it is not possible to retrieve the
> return value
> of the function within the backticks. Is this expected behavior?
It is expected and documented. `local' is a builtin command that returns
a 0 status if the assignment is performed.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/