zsh-workers
 help / color / mirror / code / Atom feed
* Bugfix: zsh crashes if invoked with unset PATH
@ 1995-07-05 10:40 Zoltan Hidvegi
  1995-07-07 16:22 ` Zoltan Hidvegi
  0 siblings, 1 reply; 2+ messages in thread
From: Zoltan Hidvegi @ 1995-07-05 10:40 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-07-07 15:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-07-05 10:40 Bugfix: zsh crashes if invoked with unset PATH Zoltan Hidvegi
1995-07-07 16:22 ` Zoltan Hidvegi

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).