Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: whence following symlinks



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