Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: whence following symlinks
- X-seq: zsh-workers 3069
- From: Zefram <zefram@xxxxxxxxxxxxxxxxx>
- To: jae@xxxxxxxxxxxx (Juergen A. Erhard)
- Subject: Re: whence following symlinks
- Date: Fri, 11 Apr 1997 15:10:01 +0100 (BST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <199704102104.UAA00359@xxxxxxxxxxxxx> from "Juergen A. Erhard" at Apr 10, 97 08:04:30 pm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author