sh ++/-- operators

RW rwmaillists at
Thu Jun 10 16:19:23 UTC 2010

FreeBSD's sh (in 8.0) doesn't seem to support the ++ or -- arithmetic

  $ echo "$((n++))"
  arithmetic expression: syntax error: "n++"

Am I wrong in thinking these are POSIX operators? It seems odd if they
were simply left-out..

More information about the freebsd-questions mailing list