m0viefreak 12b879caf7 'main': Use zsh/parameter instead of type -w
If possible, try to use the zsh/parameter module to get
information about a shell words.

This avoids subshells and is a huge speed improvement
on systems such as cygwin.

Note 1:
$commands does not know about PATH_DIRS. So in case
PATH_DIRS is set, 'type -w' is still used if nothing
else matches.

Note 2:
zsh/parameter can't distinguish between 'command' and
'hashed'. Adjusted the test for that case to XFAIL.

The ideal solution would be if whence had an option to
put the result in REPLY instead of printing it to stdout.
2016-05-13 20:25:07 +02:00
..
2016-05-05 12:28:43 -05:00
2016-05-05 12:28:43 -05:00
2016-05-05 12:28:43 -05:00
2016-05-05 12:28:43 -05:00
2016-05-05 12:28:43 -05:00
2016-05-05 12:28:43 -05:00
2016-05-05 12:28:43 -05:00