diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-11-08 09:40:02 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-11-08 09:40:02 +0000 |
commit | 9a5e9f0685094283e2812e5291f1c2759012094d (patch) | |
tree | 46192c4750515706ae8298366443c874e40825e8 /shell | |
parent | 8a3310f3b44f4ee39aed333d0d4e529ee4b10555 (diff) | |
download | busybox-w32-9a5e9f0685094283e2812e5291f1c2759012094d.tar.gz busybox-w32-9a5e9f0685094283e2812e5291f1c2759012094d.tar.bz2 busybox-w32-9a5e9f0685094283e2812e5291f1c2759012094d.zip |
Teach lash to get $1 $2 $3 etc correct
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@5876 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/lash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/lash.c b/shell/lash.c index e4654071d..7994d2620 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -890,7 +890,7 @@ static int expand_arguments(char *command) | |||
890 | case '0':case '1':case '2':case '3':case '4': | 890 | case '0':case '1':case '2':case '3':case '4': |
891 | case '5':case '6':case '7':case '8':case '9': | 891 | case '5':case '6':case '7':case '8':case '9': |
892 | { | 892 | { |
893 | int ixx=*(dst + 1)-48; | 893 | int ixx=*(dst+1)-48+1; |
894 | if (ixx >= argc) { | 894 | if (ixx >= argc) { |
895 | var='\0'; | 895 | var='\0'; |
896 | } else { | 896 | } else { |