aboutsummaryrefslogtreecommitdiffstats
path: root/bash/bash-2.05b/builtins-shift.patch
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bash-2.05b/builtins-shift.patch')
-rw-r--r--bash/bash-2.05b/builtins-shift.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/bash/bash-2.05b/builtins-shift.patch b/bash/bash-2.05b/builtins-shift.patch
index e69de29bb2..67d0c51c7a 100644
--- a/bash/bash-2.05b/builtins-shift.patch
+++ b/bash/bash-2.05b/builtins-shift.patch
@@ -0,0 +1,11 @@
+--- builtins/shift.def.orig 2002-10-22 01:05:10.000000000 -0400
++++ builtins/shift.def 2002-10-22 01:05:06.000000000 -0400
+@@ -68,7 +68,7 @@
+ else if (times > number_of_args ())
+ {
+ if (print_shift_error)
+- sh_erange (list->word->word, "shift count");
++ sh_erange (list ? list->word->word : NULL, "shift count");
+ return (EXECUTION_FAILURE);
+ }
+