zsh-users
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Timothy J Luoma <luomat+zsh+users@luomat.peak.org>,
	zsh-users@math.gatech.edu
Subject: Re: zsh script wipes out my PROMPT and RPROMPT
Date: Sat, 24 Jan 1998 14:13:39 -0800	[thread overview]
Message-ID: <980124141339.ZM23464@candle.brasslantern.com> (raw)
In-Reply-To: <199801242023.PAA25336@luomat.peak.org>

On Jan 24,  3:23pm, Timothy J Luoma wrote:
} Subject: zsh script wipes out my PROMPT and RPROMPT
}
} This script wipes out the PROMPT and RPROMPT

Can you explain further, please?

If you run this as an actual script, it -shouldn't- be able to have any
effect on your prompt at all, because it runs in a second shell.

If you run this as a shell function (e.g. by autoloading it), the "exit 0"
at the end should kill the shell entirely.

If you source or execute as a function this script from your .zlogin or
other init file, the "exit 0" will abort reading that file, which will of
course leave unfinished anything that appears later in the file.  My guess
is that this is what you're seeing, and that if you get rid of "exit 0"
then things will improve.

Another problem is that

LINES=`wc -l $FILE | awk '{print $1}'`

is changing zsh's idea of the size of your terminal; LINES is a reserved
variable name, along with COLUMNS.  You shouldn't use it as a temporary.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


  reply	other threads:[~1998-01-25 15:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-24 20:23 Timothy J Luoma
1998-01-24 22:13 ` Bart Schaefer [this message]
1998-01-24 22:29   ` Timothy J Luoma
1998-01-24 22:52     ` Bart Schaefer

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=980124141339.ZM23464@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=luomat+zsh+users@luomat.peak.org \
    --cc=zsh-users@math.gatech.edu \
    /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).