Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: syntax check of 'echo $HOME' crashes in ksh emulation mode



On Mon, 5 Oct 2015 10:45:07 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Hrm.  But we DO set HOME in ksh emulation if the -n option is not given.
> What is it about no_exec that changes things?

Not importing environment variables.

% ARGV0=ksh zsh -fc 'echo $HOME'
/export/home/pws
% (unset HOME; ARGV0=ksh zsh -fc 'echo $HOME')

%

pws



Messages sorted by: Reverse Date, Date, Thread, Author