aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorIngo van Lil <inguin@gmx.de>2018-01-05 15:04:23 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-02-14 17:38:29 +0100
commit59675c625d6500a9a0657481321954b0d1f63da9 (patch)
tree51e25a6b447a862064d599e70a250467fd391639 /init
parentc0fab1ba496e27168898c0e74d8e3d11b9902999 (diff)
downloadbusybox-w32-59675c625d6500a9a0657481321954b0d1f63da9.tar.gz
busybox-w32-59675c625d6500a9a0657481321954b0d1f63da9.tar.bz2
busybox-w32-59675c625d6500a9a0657481321954b0d1f63da9.zip
ash: fail if 'shift' operand is out of range
If the numeric argument passed to ash's 'shift' built-in is greater than '$#' the command performs no operation and exits successfully. It should return a non-zero exit code instead: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#shift This is consistent with bash and hush. function old new delta shiftcmd 122 120 -2 Signed-off-by: Ingo van Lil <inguin@gmx.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions