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/zsh.h | |
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/zsh.h')
-rw-r--r-- | Src/zsh.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index abe9a9c82..1e982a632 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1361,6 +1361,14 @@ struct options { int argscount, argsalloc; }; +/* Flags to parseargs() */ + +enum { + PARSEARGS_TOPLEVEL = 0x1, /* Call to initialise shell */ + PARSEARGS_LOGIN = 0x2 /* Shell is login shell */ +}; + + /* * Handler arguments are: builtin name, null-terminated argument * list excluding command name, option structure, the funcid element from the |