zsh-workers
 help / color / mirror / code / Atom feed
From: Steve Simmons <scs@umich.edu>
To: zsh-workers@sunsite.dk
Subject: zsh not running .zshrc when 'script' command used?
Date: Tue, 6 Jan 2004 10:46:32 -0500 (EDT)	[thread overview]
Message-ID: <Pine.GSO.4.40.0401061034550.20638-100000@login1.sph.umich.edu> (raw)

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


                 reply	other threads:[~2004-01-06 15:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.40.0401061034550.20638-100000@login1.sph.umich.edu \
    --to=scs@umich.edu \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).