zsh-workers
 help / color / mirror / code / Atom feed
From: hzoli@cs.elte.hu (Zoltan Hidvegi)
To: zsh-workers@math.gatech.edu (zsh-workers)
Subject: Bugfix: zsh crashes if invoked with unset PATH
Date: Wed, 5 Jul 1995 11:40:23 +0100 (MET DST)	[thread overview]
Message-ID: <9507050940.AA05399@turan.elte.hu> (raw)

If PATH is not set in the environment, zsh dumps core the first time it
attempts to execute an external command without an absolute path. That is
because in init.c newcmdnamtable() is called before the path is initialised.

% unset PATH ; ./zsh -fc 'ls'            
zsh: 5275 segmentation fault (core dumped)  ./zsh -fc 'ls'

Because of this bug one of my boot scripts faild (that's almost the only place
where PATH is unset).

Here is the patch to fix that. It applies with fuzz 2 to the baseline zsh as I
added /usr/local/bin to the default path in my release.

Bye,
  Zoltan


             reply	other threads:[~1995-07-05  9:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-07-05 10:40 Zoltan Hidvegi [this message]
1995-07-07 16:22 ` Zoltan Hidvegi

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=9507050940.AA05399@turan.elte.hu \
    --to=hzoli@cs.elte.hu \
    --cc=zsh-workers@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).