Bug#627856: dash: shift built-in behaves probably incorrectly

2011-06-05 Thread Jonathan Nieder
Christoph Anton Mitterer wrote: > On Tue, 2011-05-24 at 17:27 -0500, Jonathan Nieder wrote: >> 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. > > Not sure whether this i

Bug#627856: dash: shift built-in behaves probably incorrectly

2011-06-05 Thread Christoph Anton Mitterer
On Tue, 2011-05-24 at 17:27 -0500, Jonathan Nieder wrote: > 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. Not sure whether th

Bug#627856: dash: shift built-in behaves probably incorrectly

2011-05-24 Thread Jonathan Nieder
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 9 > $# the shell scripts a

Bug#627856: dash: shift built-in behaves probably incorrectly

2011-05-24 Thread Christoph Anton Mitterer
Package: dash Version: 0.5.5.1-7.4 Severity: normal Hi. IMHO the shift built-in behaves incorrectly. Take an example shell script like this: #!/bin/sh echo foo shift 9 echo bar In case 9 > $# the shell scripts aborts. POSIX' definition of shift (http://pubs.opengroup.org/onlinepubs/969