EF> I just noticed that /rescue/sh (at least the one from -6) doesn't know ++ 
EF> in an Arithmetic Expansion.

FWIW:  netbsd-9 /rescue/sh does support it.

EF> And out of curiosity: why is it missing ++?

I guess because it just ain't required by POSIX.  Never was, still isn't.
Shell & Utilities -> 2.6 Word Expansions -> 2.6.4 Arithmetic Expansion:

        The arithmetic expression shall be processed according to the rules
        given in 1.1.2.1 Arithmetic Precision and Operations, with the
        following exceptions:

        * Only signed long integer arithmetic is required.
        * Only the decimal-constant, octal-constant, and hexadecimal-constant
          constants specified in the ISO C standard, Section 6.4.4.1 are
          required to be recognized as constants.
        * The sizeof() operator and the prefix and postfix "++" and "--"
          operators are not required.
        * Selection, iteration, and jump statements are not supported.

                                                                Martin

Reply via email to