[prev in list] [next in list] [prev in thread] [next in thread]
List: bash-bug
Subject: Re: "$@" vs. nounset
From: Chet Ramey <chet.ramey () case ! edu>
Date: 2009-06-30 12:32:16
Message-ID: 4A4A05D0.2050004 () case ! edu
[Download RAW message or body]
Yang Zhang wrote:
> (IIRC, in bash, variables set to
> empty arrays and unset variables are the same).
In the shell, a variable is not set until it has been assigned a value.
An array variable is not set unless one of its indices has been assigned
a value.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic