zsh-workers
 help / color / mirror / code / Atom feed
From: "Juergen A. Erhard" <jae@laden.ilk.de>
To: zefram@dcs.warwick.ac.uk
Cc: zsh-workers@math.gatech.edu
Subject: Re: whence following symlinks
Date: Mon, 21 Apr 1997 16:34:04 +0200	[thread overview]
Message-ID: <199704211434.QAA04441@Laden3.ilk.de> (raw)
In-Reply-To: <807.199704111410@stone.dcs.warwick.ac.uk> (message from Zefram on Fri, 11 Apr 1997 15:10:01 +0100 (BST))

-----BEGIN PGP SIGNED MESSAGE-----

>>>>> "Zefram" == Zefram  <zefram@dcs.warwick.ac.uk> 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
    >> '-s'.

    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);
    Zefram> ...
    >> ! 		/* revert setting of CHASELINKS */
    >> ! 		dosetopt(CHASELINKS, chase, 0);

    Zefram> Do

    Zefram> 	chase = opts[CHASELINKS];
    Zefram> 	opts[CHASELINKS] = 1;
    Zefram> 	...
    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
smarter ;-)

    Zefram> -zefram

Bye, J

- -- 
Juergen A. Erhard (that ue is actually \"u (TeX) or &uuml; (HTML/SGML))
eMail: jae@laden.ilk.de                             |
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-----
Version: 2.6.3ia
Charset: noconv
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQEVAwUBM0/sAwIG66LugGzRAQH+AwgAn3nUBG6elVvRrbKBGPv9xfYzReQxT8k0
hdvJhzPwJR6gXGREjcwEs1+agl/tvE/FENt+7eG3QtKCPo/1jlZTWX1mkkLFUsox
qabkAB42xn0eLHy9MFVpA4sKA5uh1XeOEZ1rRSU/QsN8RRGcWqzc3PiWgDt+dukq
3AZQ32vPYMMersdy9VA5kGCXjDDv5t0w6XoaIZKxBlBjGcYJxRYHrwtZpi0QhQUH
2Mm9+VTLux0ZcqklZ3NO5D7le+W6N0vkchjN7hH2pF1MADcXoxaKSShFgBmHy8XK
k2KbA6iuYBO/1ksgrrfHnkuaoKwNVH6Miyk9WsE3f3GBXkLO+ydUbw==
=ocZm
-----END PGP SIGNATURE-----


      reply	other threads:[~1997-04-21 14:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-10 21:04 Juergen A. Erhard
1997-04-11 14:10 ` Zefram
1997-04-21 14:34   ` Juergen A. Erhard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199704211434.QAA04441@Laden3.ilk.de \
    --to=jae@laden.ilk.de \
    --cc=zefram@dcs.warwick.ac.uk \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).