bug-bash
[Top][All Lists]
Advanced

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

Re: "$@" vs. nounset


From: Chet Ramey
Subject: Re: "$@" vs. nounset
Date: Tue, 30 Jun 2009 08:32:16 -0400
User-agent: Thunderbird 2.0.0.22 (Macintosh/20090605)

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/




reply via email to

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