Hi Peter, Peter Stephenson <pws@xxxxxxx> wrote: > Index: Functions/Misc/run-help > =================================================================== > RCS file: /cvsroot/zsh/zsh/Functions/Misc/run-help,v > retrieving revision 1.16 > diff -u -r1.16 run-help > --- Functions/Misc/run-help 5 Jun 2009 11:18:01 -0000 1.16 > +++ Functions/Misc/run-help 10 Dec 2009 09:48:44 -0000 > @@ -49,6 +49,7 @@ > noalias=1 > fi > > +{ > while ((i++ < $#places)) > do > what=$places[$i] > @@ -56,7 +57,8 @@ > builtin print -r $what > case $what in > (*( is an alias)*) > - [[ ${what[(w)6]:t} != ${what[(w)1]} ]] && run-help ${what[(w)6]:t} > + [[ ${what[(w)6]:t} != ${what[(w)1]} ]] && > + run_help_orig_cmd=${what[(w)1]} run-help ${what[(w)6]:t} > +} always { > + unset run_help_orig_cmd > +} Why do you need the unset here? In Posix shell an expression âVAR=xy cmdâ exports the variable VAR only to the command cmd, but doesn't export or set it in the current environment. I zsh different here? Bye, JÃrg. -- IRC: Der [Prof. Andreas Pfitzmann, TU Dresden] hat gerade vorgeschlagen, sie sollen doch statt Trojanern die elektromagnetische Abstrahlung nutzen. Das sei nicht massenfÃhig, ginge ohne Eingriff ins System, sei zielgerichtet, und, der Hammer, das funktioniere ja bei Wahlcomputern schon sehr gut.
Attachment:
signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP