zsh-workers
 help / color / mirror / code / Atom feed
* zsh not running .zshrc when 'script' command used?
@ 2004-01-06 15:46 Steve Simmons
  0 siblings, 0 replies; only message in thread
From: Steve Simmons @ 2004-01-06 15:46 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-06 15:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-06 15:46 zsh not running .zshrc when 'script' command used? Steve Simmons

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).