diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-09-07 18:16:45 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-09-07 18:16:45 +0200 |
commit | 64aa86b720641cb50be9636e6c20d4dbbea6fed0 (patch) | |
tree | 831e13eec7b361f1f9b37a4359594969eee0050c /shell/ash.c | |
parent | d6c9cbc0727cc3875672ae280ec129514a9d8594 (diff) | |
download | busybox-w32-64aa86b720641cb50be9636e6c20d4dbbea6fed0.tar.gz busybox-w32-64aa86b720641cb50be9636e6c20d4dbbea6fed0.tar.bz2 busybox-w32-64aa86b720641cb50be9636e6c20d4dbbea6fed0.zip |
ash: LINENO starts from 0 in -c SCRIPT mode
The var_LINENO3.tests fails for hush: it does start from 0, but does not increment.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index 79fa3adba..35dbb2f28 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -14698,7 +14698,7 @@ int ash_main(int argc UNUSED_PARAM, char **argv) | |||
14698 | // ^^ not necessary since now we special-case fd 0 | 14698 | // ^^ not necessary since now we special-case fd 0 |
14699 | // in save_fd_on_redirect() | 14699 | // in save_fd_on_redirect() |
14700 | 14700 | ||
14701 | lineno = 1; | 14701 | lineno = 0; // bash compat |
14702 | // dash: evalstring(minusc, sflag ? 0 : EV_EXIT); | 14702 | // dash: evalstring(minusc, sflag ? 0 : EV_EXIT); |
14703 | // The above makes | 14703 | // The above makes |
14704 | // ash -sc 'echo $-' | 14704 | // ash -sc 'echo $-' |