zsh-workers
 help / color / mirror / code / Atom feed
* Reliable zsh-3.0.0 core dump
@ 1996-08-18 20:31 Bart Schaefer
  0 siblings, 0 replies; 5+ messages in thread
From: Bart Schaefer @ 1996-08-18 20:31 UTC (permalink / raw)
  To: zsh-workers

Install the following function and alias; then execute run-help (via ZLE
with ESC h) more than once.  It works the first time, and dumps core in
parsecomp() the second time (with a trashed stack).

zman() {
    if [[ -f /usr/local/lib/zsh/functions/run-help ]]
    then
	autoload run-help
	FPATH=/usr/local/lib/zsh/functions \run-help $1
    elif [[ -f /usr/local/lib/zsh/help/$1 ]]
    then less /usr/local/lib/zsh/help/$1
    else man $1
    fi
}
alias run-help zman

I found this by accident, because if you change it to be:

zman() {
    if [[ -f /usr/local/lib/zsh/functions/run-help ]]
    then
	autoload run-help
	unalias run-help				# Added this line
	FPATH=/usr/local/lib/zsh/functions \run-help $1
    elif [[ -f /usr/local/lib/zsh/help/$1 ]]
    then less /usr/local/lib/zsh/help/$1
    else man $1
    fi
}

Then it works exactly as desired.

-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern

New male in /home/schaefer:
>N  2 Justin William Schaefer  Sat May 11 03:43  53/4040  "Happy Birthday"


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <199608251116.NAA00518@hzoli.ppp.cs.elte.hu>]

end of thread, other threads:[~1996-08-26 18:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-18 20:31 Reliable zsh-3.0.0 core dump Bart Schaefer
     [not found] <199608251116.NAA00518@hzoli.ppp.cs.elte.hu>
1996-08-25 19:10 ` Bart Schaefer
1996-08-25 23:59   ` Zoltan Hidvegi
1996-08-26  0:50     ` Bart Schaefer
1996-08-26 18:36       ` 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).