dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* shift "fatal error"
@ 2011-03-10 18:40 Dan Muresan
  2011-03-10 19:23 ` Guido Berhoerster
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Muresan @ 2011-03-10 18:40 UTC (permalink / raw)
  To: dash

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-26  7:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-10 18:40 shift "fatal error" Dan Muresan
2011-03-10 19:23 ` Guido Berhoerster
2011-03-15 21:31   ` Jilles Tjoelker
2011-03-26  7:11     ` Dan Muresan
2011-03-26  7:27       ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).