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

Re: [PATCH] run-help: ugly workaround for run-help-$X with alias for $X



On Dec 14,  1:42pm, Peter Stephenson wrote:
} Subject: Re: [PATCH] run-help: ugly workaround for run-help-$X with alias 
}
} =?iso-8859-1?Q?J=F6rg?= Sommer wrote:
} > Why do you need the unset here?
} 
} It's the same "unset" that was in the original, just moved to a
} position where it's guaranteed always to be executed.

Aside:  I can't find the "var=value command ..." syntax anywhere in
the zsh manual.  I was sure there was some mention of it, but it seems
to be in the category of "things all shells do" that zsh's manual does
not bother to reiterate.

That unset is probably there because older versions of zsh had some
bugs in the implementation of "var=value command ..." particularly in
the case where "command" is a function or builtin.  This stemmed from
zsh's efforts to avoid forking when no external program was involved.

(I have the nagging feeling there are still some cases where the
parameter will intentionally remain set, but I can't recall what.)

However, the versions of zsh that have that problem will choke on the
"always" syntax, so there's no backwards compatibility benefit here.



Messages sorted by: Reverse Date, Date, Thread, Author