projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5703341
)
Teach lash to get $1 $2 $3 etc correct
author
Eric Andersen
<andersen@codepoet.org>
Fri, 8 Nov 2002 09:40:02 +0000
(09:40 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Fri, 8 Nov 2002 09:40:02 +0000
(09:40 -0000)
-Erik
shell/lash.c
patch
|
blob
|
history
diff --git
a/shell/lash.c
b/shell/lash.c
index e4654071da8d3dfcb9fcc83d5f62c67be9367382..7994d2620d81f21815b3ec551930f5b1776ce532 100644
(file)
--- 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 {