herbert@bree:~$ bash -o posix -c 'shift 2; echo hi' hi herbert@bree:~$ dash -c 'shift 2; echo hi' shift: 1: can't shift that many herbert@bree:~$
Would you classify this as a `utility syntax error'? I don't -- it's a simple out of range operand. Other than that possibility, this doesn't seem to fit into the list of errors that posix says should be fatal for special builtins running in non-interactive shells. Chet
FWIW pdksh also exits like dash. Cheers,