Zsh Mailing List Archive
Messages sorted by:
Re: whence following symlinks
- X-seq: zsh-workers 3082
- From: "Juergen A. Erhard" <jae@xxxxxxxxxxxx>
- To: zefram@xxxxxxxxxxxxxxxxx
- Subject: Re: whence following symlinks
- Date: Mon, 21 Apr 1997 16:34:04 +0200
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <807.199704111410@xxxxxxxxxxxxxxxxxxxxxxx> (message from Zefram on Fri, 11 Apr 1997 15:10:01 +0100 (BST))
-----BEGIN PGP SIGNED MESSAGE-----
>>>>> "Zefram" == Zefram <zefram@xxxxxxxxxxxxxxxxx> writes:
Zefram> 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
Zefram> You could duplicate the new code, or use the hashtable printnode() method.
Okay, I'll check this printnode() out...
>> ! /* temporarily set CHASELINKS */
>> ! chase = isset(CHASELINKS);
>> ! dosetopt(CHASELINKS, 1, 0);
>> ! /* revert setting of CHASELINKS */
>> ! dosetopt(CHASELINKS, chase, 0);
Zefram> chase = opts[CHASELINKS];
Zefram> opts[CHASELINKS] = 1;
Zefram> opts[CHASELINKS] = chase;
Well, there's a reason to my madness ;-)...
I simply don't like directly editing some data structures that might
or might not transmogrify into something completely different...
On the other hand, you're right in your (implied) statement that
dosetopt might carry too much overhead...
So, if TPTB gives me the ok to use your suggestion (that is,
they/he/she/it guarantees opts to stay a simple int), I will.
>> ! /* throw away try_link... hope this is the right fn */
>> ! zsfree(try_link);
Zefram> It is the right function.
Thanks. I'd really love to see a couple more comments on this
beast. Especially on fns like 'xsymlink'... I had to RTFS to find out
I had to free(3) the result... and had to guess (more or less) on
zsfree (the doc on the mem-mgt could be better... or maybe I could be
Juergen A. Erhard (that ue is actually \"u (TeX) or ü (HTML/SGML))
eMail: jae@xxxxxxxxxxxx |
snailMail: Belfortstr. 6; 76133 Karlsruhe; GERMANY | pros do it for money,
phone: +49 721 27326 | amateurs out of love.
WWW: http://members.tripod.com/~Juergen_Erhard/ |
-----BEGIN PGP SIGNATURE-----
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface
-----END PGP SIGNATURE-----
Messages sorted by: