summaryrefslogtreecommitdiff
path: root/bash/bash-2.05b/builtins-shift.patch
blob: 67d0c51c7abf177d5cf3a796e0f76fba5979acde (plain)
1
2
3
4
5
6
7
8
9
10
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);
     }