summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorEric Andersen2002-11-08 09:40:02 +0000
committerEric Andersen2002-11-08 09:40:02 +0000
commit7ab93d99802852093b08466f8b085980a3b205bf (patch)
tree46192c4750515706ae8298366443c874e40825e8 /shell
parent57033411236427677b925bb86ef0613000cb52b0 (diff)
downloadbusybox-7ab93d99802852093b08466f8b085980a3b205bf.zip
busybox-7ab93d99802852093b08466f8b085980a3b205bf.tar.gz
Teach lash to get $1 $2 $3 etc correct
-Erik
Diffstat (limited to 'shell')
-rw-r--r--shell/lash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/lash.c b/shell/lash.c
index e465407..7994d26 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 {