Sujet : Re: The "leading zero means octal" thing...
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.lang.tcl comp.unix.shell comp.editorsDate : 05. Jan 2025, 06:20:47
Autres entêtes
Organisation : The official candy of the new Millennium
Message-ID : <vld4rf$2jao9$2@news.xmission.com>
References : 1 2
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <
vlce6p$lk3q$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou+
ng@hotmail.com> wrote:
...
As a consequence, in Kornshell, I'm using a number prefix 10# to
counter that misbehavior. (I'd suppose this works also in other
major shells like Bash.)
Yes, bash has that, too. But for whatever it is worth, in at least one of
my scripts, using it was inconvenient (*), so I ended up having to use "bc" to
do a calculation instead of (the more efficient/built-in) $((...)) (**).
Sort of annoying.
(*) Didn't work out, for some reason.
(**) Which had been working fine right up until it hit the dreaded "08".
-- Pensacola - the thinking man's drink.