tech-userlevel archive

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

Re: sh: arithmetic: ++ operator unsupported



> Not a great surprise.   -6 ???
Sorry, it's from 8.2.

I keep that old /rescue because I can switch that machine between -8, -10 and 
-11 (I skipped -9): I have an -8 installation in /8, /usr/8 and /var/8 (plus 
null mounts for that latter on /8/usr resp. /8/var), same for s/8/10/ (and, 
currently empty, for 11) and a shell script that can swap (given a 
configuration file knowing what to swap), i.e. /bin->/11/bin and /10/bin->/bin 
and I need the lowest supported version in /rescue as I do the swap in single 
user mode with /rescue/sh (and PATH=/rescue) plus /rescue/reboot.

> That (vi editing mode) probably shouldn't be missing, are you sure?
> Did you "set -V" (along with setting TERM etc).
Sorry again, it's actually built in.

> But ++ isn't missing from "/rescue/"sh in -6, it is missing from sh in -6
> (maybe in -7 as well, I don't remember the timeline).
Ah, I see. But it's also missing from sh in 8.2.

> No-one had bothered to implement it?    ++ wasn't, and still isn't,
> a POSIX required operator in shell arithmetic (and -- of course).
Sorry once again, I missed that.


Home | Main Index | Thread Index | Old Index