Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Anomalies with $-
- X-seq: zsh-workers 48931
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Anomalies with $-
- Date: Tue, 25 May 2021 14:42:34 -0700
- Archived-at: <https://zsh.org/workers/48931>
- List-id: <zsh-workers.zsh.org>
Noticed while trying to set up .zshenv to behave differently when zsh
is started with/out the "-c cmdstring" option. (Painful in versions
before $ZSH_EXECUTION_STRING was implemented.)
% Src/zsh -c 'echo $-'
569Xd
%
The -d option is not documented (it's "-o noglobalrcs"), and the -c
option does not appear in the value of $-. (noglobalrcs is set by my
.zshenv, it would not normally appear at all.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author