Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh not running .zshrc when 'script' command used?
- X-seq: zsh-workers 19340
- From: Steve Simmons <scs@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: zsh not running .zshrc when 'script' command used?
- Date: Tue, 6 Jan 2004 10:46:32 -0500 (EDT)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
I'm having an odd problem with zsh when using the UNIX script command.
For those who've not used it before, script takes some ptys and starts
a new shell running. stdin and stdout appear to be just what they
were before the script command was invoked, but all your stdin/out/err
traffic is logged to a file. When you exit the shell, you're returned
to your previous shell and all your activity is logged to a file
named 'typescript.'
I've noticed two odd things with zsh when using script. First, the
.zshrc file is not read when the shell starts. Putting echo commands
in my .zshrc confirms this. Other symptoms include SHLVL not being
updated - my PS1 setting is done by a
export PS1="%S: ${LOGNAME}@${HOSTNAME} {$SHLVL/%!}:;%s "
and it displays the same SHLVL even though $SHLVL is 2 in the
script subshell. Yes, I know how to work around this and have done
so. I'd prefer, tho, not to work around it for every setting in .zshrc
that isn't inherited by subshells.
Second, if I try to get a kerberos ticket (v4), I get:
$ klog
Unable to login because can't read password from terminal.
I'm not sure this is the same issue or not.
This occurs with 4.0.6 on freebsd, 4.1.1 on solaris 2.7, and 3.0.6 on
solaris 8.
Feel free to ask for clarifying symptoms, testing, etc.
Thanks,
Steve Simmons
Messages sorted by:
Reverse Date,
Date,
Thread,
Author