bug-bash
[Top][All Lists]
Advanced

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

Re: variable name and its' value are the same characters causes recursio


From: Greg Wooledge
Subject: Re: variable name and its' value are the same characters causes recursion error
Date: Thu, 10 Mar 2011 08:14:28 -0500
User-agent: Mutt/1.4.2.3i

On Thu, Mar 10, 2011 at 10:18:26AM +0800, Clark J. Wang wrote:
> Actually I don't like the recursion here. Does POSIX require that?
> 
> > For example:
> >
> > unset a; declare a="a"; [[ a -lt 3 ]]; echo $?
> > bash: [[: a: expression recursion level exceeded (error token is "a")
> > 1

POSIX doesn't even have a [[ command.  This is all bash.



reply via email to

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