help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] question about non-interactive shell mode


From: MaShimiao
Subject: Re: [Help-bash] question about non-interactive shell mode
Date: Thu, 17 Jan 2013 14:46:55 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 01/17/2013 02:15 PM, Clark WANG wrote:
On Thu, Jan 17, 2013 at 1:41 PM, MaShimiao <address@hidden> wrote:
Hi,all.
According to changelog, there is a shell's new feature about non-interactive mode.
It says non-interactive mode shells exit if -u is enabled and an attempt in made to use an unset variable with the % or # expansions, the '//', '^', or ',' expansion, or the parameter length expansion.

 "if -u is enabled", does it mean "shopt -u interactive_comments" or anything else?

Should be "set -u" (Treat unset variables as an error when substituting.)
Got it, Thank you very much.


reply via email to

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