[Pkg-zsh-devel] Bug#776663: zsh-common: Wish for /etc/zsh/zprofile.d or equivalent
Frank Terbeck
ft at bewatermyfriend.org
Fri Jan 30 23:23:58 UTC 2015
Frank Terbeck wrote:
[...]
> you don't need null_glob at all. Thus, I'd do this:
>
> for i in /etc/zsh/zshrc.d/*.zsh; do
Well, since zsh's default behaviour is to error out with non-matching
globs, using the qualifier is actually required:
for i in /etc/zsh/zshrc.d/*.zsh(N); do
> # I'm quoting the parameter, because someone might have
> # set the SH_WORD_SPLIT option in, say "~/.zshenv".
> if [ -r "$i" ]; then
> source "$i"
> fi
> done
>
>
> Regards, Frank
--
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
-- RFC 1925
More information about the Pkg-zsh-devel
mailing list