help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] set -u in an arithmetic context


From: Bill Gradwohl
Subject: Re: [Help-bash] set -u in an arithmetic context
Date: Thu, 26 Apr 2012 15:59:53 -0600

On Thu, Apr 26, 2012 at 11:01 AM, Eric Blake <address@hidden> wrote:
Especially since 'set -u' _does_ affect arithmetic expansion (although I
couldn't quickly find such a requirement in POSIX, so we may have a hole
in the standard):



We're on the same bash level.

I question the notion of "expansion" in this case. Without the $ or ${} wrappers is there "expansion" going on?

Man bash says that set -u work as part of "parameter expansion". Without the $ or ${} wrappers, isn't it just taking whatever the value is an using it as is with no expansion?

--
Bill Gradwohl


reply via email to

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