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: Clark WANG
Subject: Re: [Help-bash] question about non-interactive shell mode
Date: Thu, 17 Jan 2013 14:15:04 +0800

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.)

reply via email to

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