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

Re: zsh-newuser-install



On Apr 26, 10:07am, Martin Vaeth wrote:
} Subject: Re: zsh-newuser-install
}
} BTW: "emulate -L bash" would be useful to read some distribution's
} or user's bash setup files. Main difference to emulate -L sh would be
}   setopt ksh_glob no_sh_glob brace_expand
} and that [[ $var ]] is treated equivalent to [[ -n $var ]]:

I've started a separate thread on zsh-workers about [[ $var ]].

Regarding bash emulation, as of recent zsh you can do this kind of thing:

    emulate sh -o ksh_glob +o sh_glob -o brace_expand -c '. ~/.bashrc'

Functions loaded from .bashrc will retain the options set on the emulate
command line.



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