On Tue, 26 Feb 2013 09:15:05 -0500, Vladimir Panteleev <[email protected]> wrote:

On Tuesday, 26 February 2013 at 14:02:08 UTC, Steven Schveighoffer wrote:
If I use $XYZ in a script, and XYZ isn't set, it equates to nothing. When I use getenv, it returns null. That is the behavior I would intuitively expect.

I thought well-written scripts should use "set -u"?

I didn't even know about that. But my point still stands -- if well-written scripts are supposed to use set -u, it should be the default.

Hm... what about something like Environment.throwOnUnsetVariable = true;

-Steve

Reply via email to