Hi, is there some consensus on whether shift should cause a "fatal
error" as reported by Herbert against bash:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=252378

# doesn't print anything
dash -c 'shift 2; echo hi'

My copy of SUSv3 doesn't seem to imply any "fatal error" handling
requirement for shift:

--- 8-X ---
EXIT STATUS

The exit status is >0 if n>$#; otherwise, it is zero.

CONSEQUENCES OF ERRORS

Default.
--- 8-X ---

-- Dan
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to