bug-bash
[Top][All Lists]
Advanced

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

Re: leading 0 inconsistence?


From: Andreas Schwab
Subject: Re: leading 0 inconsistence?
Date: Sat, 12 Feb 2011 13:39:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.93 (gnu/linux)

Ralf Goertz <R_Goertz@usenet.arcornews.de> writes:

> Why is 08 not tried to be interpreted as octal when *numerically* compared
> using test?

Because test does not know about octal for compatibility.  Use [[ ... ]]
if you want to be closer to $((...)).

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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