bug-bash
[Top][All Lists]
Advanced

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

Re: doesn't bash do variable subst. or quote removal on function stateme


From: Greg Wooledge
Subject: Re: doesn't bash do variable subst. or quote removal on function statement
Date: Tue, 12 Jan 2016 14:56:03 -0500
User-agent: Mutt/1.4.2.3i

On Tue, Jan 12, 2016 at 11:52:47AM -0800, Linda Walsh wrote:
> Also, from a documentation standpoint, not all behaviors are documented
> in the manpage, like:
> 
> echo $[1+2]
> 
> as far as I can tell, isn't documented, yet not supporting
> its behavior would break many older scripts....

That syntax has been deprecated for at least 15 years.  Nobody is
supposed to be using it.  It's undocumented ON PURPOSE, to try to make
people stop doing it.

If you have older scripts that use it, fix them now.



reply via email to

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