From: Eric Andersen Date: Fri, 8 Nov 2002 09:40:02 +0000 (-0000) Subject: Teach lash to get $1 $2 $3 etc correct X-Git-Tag: 1_00_pre1~468 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7ab93d99802852093b08466f8b085980a3b205bf;p=oweals%2Fbusybox.git Teach lash to get $1 $2 $3 etc correct -Erik --- 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) case '0':case '1':case '2':case '3':case '4': case '5':case '6':case '7':case '8':case '9': { - int ixx=*(dst + 1)-48; + int ixx=*(dst+1)-48+1; if (ixx >= argc) { var='\0'; } else {