retitle 627856 dash: "can't shift that many" should not be a fatal error
severity 627856 wishlist
# [1]
forwarded 627856 http://thread.gmane.org/gmane.comp.shells.dash/532/focus=551
tags 627856 + upstream
quit

Hi Christoph,

Christoph Anton Mitterer wrote:

> In case 99999 > $# the shell scripts aborts.
> POSIX' definition of shift 
> (http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#shift)
> however does not say that the shell should abort.

See also [1] above.  What POSIX says is

        The value n shall be an unsigned integer less than or equal to
        the value of the special parameter '#'.

so conforming applications will never run into this.  I would be very
happy to see whatever is the right behavior clarified in the
standard[2], if you would like to work on it.

Thanks and hope that helps,
Jonathan

[2] http://austingroupbugs.net/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to