bug-bash
[Top][All Lists]
Advanced

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

Re: Referencing empty array with "set -u" active throws error


From: Jan Schampera
Subject: Re: Referencing empty array with "set -u" active throws error
Date: Sat, 18 Dec 2010 14:38:09 +0100
User-agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329)

jens.schmidt35@arcor.de wrote:

  For an empty "$@" this does not throw an "unbound" error, which seems to be 
an inconsistent behaviour to me.

-u  Treat unset variables as an error when substituting.

I think the behaviour is consistent with the documentation.

--
Be conservative in what you do, be liberal in what you accept from others.
- jbp, master of the net, in RFC793




reply via email to

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