diff options
author | Peter Stephenson <pws@zsh.org> | 2017-09-11 10:12:17 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2017-09-11 10:12:17 +0100 |
commit | 2ef3dff65a9fc0bc69446374473ad08e6fff4755 (patch) | |
tree | f3b00a11df3ef3d6fc43bb12c2d16a133d042e48 /Src/builtin.c | |
parent | c9df6bc8d46415e270273777c80025948762e897 (diff) | |
download | zsh-2ef3dff65a9fc0bc69446374473ad08e6fff4755.tar.gz zsh-2ef3dff65a9fc0bc69446374473ad08e6fff4755.tar.xz zsh-2ef3dff65a9fc0bc69446374473ad08e6fff4755.zip |
41668: New --emulate option on invocation.
This sets the shell emulation mode similarly to ARGV0=... which doesn't work from other shells. Note that this gives more comprehensive emulation than running emulate within the shell.
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 2e72ba20a..0c2a62a88 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -5905,7 +5905,7 @@ bin_emulate(char *nam, char **argv, Options ops, UNUSED(int func)) savehackchar = keyboardhackchar; emulate(shname, opt_R, &new_emulation, new_opts); optlist = newlinklist(); - if (parseopts(nam, &argv, new_opts, &cmd, optlist)) { + if (parseopts(nam, &argv, new_opts, &cmd, optlist, 0)) { ret = 1; goto restore; } |