Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: strange behaviour with .zsh and su
- X-seq: zsh-users 804
- From: Timothy Luoma <luomat@xxxxxxxx>
- To: mito@xxxxxxxxxxx
- Subject: Re: strange behaviour with .zsh and su
- Date: Mon, 14 Apr 1997 09:01:21 -0700 (PDT)
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <19970414114827.59780@retriever>
- Organization: The PEAK FTP site for OpenStep & NeXTStep
- Reply-to: Tim Luoma <luomat@xxxxxxxx>
> One question: dosen't putting your init commmands in a .zshenv guarantee
> that these init files will be sourced on *every* invocation of zsh, even
> non-interactive ones? Is it not preferable to have these files sourced
> only if the shell is interactive?
that would be a bad thing, of course.
ZSH has a workaround. Put whatever you want only for interactive inside
this:
if [[ -o interactive ]] # if an interactive shell
then
fi
TjL
--
TjL <luomat@xxxxxxxx> http://www.peak.org/~luomat/next/
"Give a man a piece of working code and you solve his problem.
Teach a man to write code and you give him a
lifetime of new problems" -- me
Messages sorted by:
Reverse Date,
Date,
Thread,
Author