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) |
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) // ^^ not necessary since now we special-case fd 0 // in save_fd_on_redirect() - lineno = 1; + lineno = 0; // bash compat // dash: evalstring(minusc, sflag ? 0 : EV_EXIT); // The above makes // ash -sc 'echo $-' |