aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index dfb7d4d8e..b73a79975 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -10858,7 +10858,7 @@ shiftcmd(int argc UNUSED_PARAM, char **argv)
10858 if (argv[1]) 10858 if (argv[1])
10859 n = number(argv[1]); 10859 n = number(argv[1]);
10860 if (n > shellparam.nparam) 10860 if (n > shellparam.nparam)
10861 n = 0; /* bash compat, was = shellparam.nparam; */ 10861 return 1;
10862 INT_OFF; 10862 INT_OFF;
10863 shellparam.nparam -= n; 10863 shellparam.nparam -= n;
10864 for (ap1 = shellparam.p; --n >= 0; ap1++) { 10864 for (ap1 = shellparam.p; --n >= 0; ap1++) {