aboutsummaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-05-22 06:05:02 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-05-22 06:05:02 +0200
commit8a33679694b0fdf459d69868f85c081cab5687cb (patch)
treebe6d2ea8d9a5132d82939892736d2531877632e8 /shell/hush.c
parent1e811b12317d0eab4e78d848caa640cca497a0a7 (diff)
downloadbusybox-8a33679694b0fdf459d69868f85c081cab5687cb.tar.gz
hush: fix "hush -c 'echo $#'" showing -1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 41d5fcab2..7645a34a4 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -7080,7 +7080,6 @@ int hush_main(int argc, char **argv)
/* -c 'script' (no params): prevent empty $0 */
G.global_argv--; /* points to argv[i] of 'script' */
G.global_argv[0] = argv[0];
- G.global_argc--;
} /* else -c 'script' ARG0 [ARG1...]: $0 is ARG0 */
init_sigmasks();
parse_and_run_string(optarg);