From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22578 invoked from network); 11 Apr 1997 14:13:34 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 11 Apr 1997 14:13:34 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id KAA21069; Fri, 11 Apr 1997 10:07:14 -0400 (EDT) Resent-Date: Fri, 11 Apr 1997 10:07:14 -0400 (EDT) From: Zefram Message-Id: <807.199704111410@stone.dcs.warwick.ac.uk> Subject: Re: whence following symlinks To: jae@laden.ilk.de (Juergen A. Erhard) Date: Fri, 11 Apr 1997 15:10:01 +0100 (BST) Cc: zsh-workers@math.gatech.edu In-Reply-To: <199704102104.UAA00359@Laden2.ilk.de> from "Juergen A. Erhard" at Apr 10, 97 08:04:30 pm X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]9162.95 X-Phase: The Moon is Waxing Crescent (21% of Full) X-US-Congress: Moronic fuckers X-Personality: INTJ X-This-is-not-HTML: Content-Type: text Resent-Message-ID: <"Y62ZX1.0.895.HMaJp"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3069 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Juergen A. Erhard wrote: >Unfortunately, 'whence -ms' doesn't work as expected, because '-m' >jumps to a different code section, and that code doesn't care for >'-s'. You could duplicate the new code, or use the hashtable printnode() method. >! /* temporarily set CHASELINKS */ >! chase = isset(CHASELINKS); >! dosetopt(CHASELINKS, 1, 0); ... >! /* revert setting of CHASELINKS */ >! dosetopt(CHASELINKS, chase, 0); Do chase = opts[CHASELINKS]; opts[CHASELINKS] = 1; ... opts[CHASELINKS] = chase; >! /* throw away try_link... hope this is the right fn */ >! zsfree(try_link); It is the right function. -zefram