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

Re: 'whence' question



ALL GOOD:

$ whence -vam "zsh*"
zsh is an alias for /usr/local/bin/zsh
zshh is an alias for /usr/local/bin/zsh
zsh is /usr/local/bin/zsh
zsh-RayStyle1 is /usr/local/bin/zsh-RayStyle1
zsh is /usr/bin/zsh
zsh is /bin/zsh

FIRST OCCURRENCE  OF FILES ONLY? I'D EXPECT THE '-m' FORM TO BE
THE DEFAULT, THE DOC IS CLEAR THAT ALL COMMAND FORMS ARE
SEARCHED.

$ whence zsh*
/usr/local/bin/zsh
/usr/local/bin/zsh-RayStyle1

HERE, QUOTATION BREAKS IT :(

$ whence  "zsh*"
(nothing)

Who tested all this stuff back in the day?

ALL GOOD:

$ whence -vasm "zsh*"
zsh is an alias for /usr/local/bin/zsh
zshh is an alias for /usr/local/bin/zsh
zsh is /usr/local/bin/zsh -> /usr/local/bin/zsh-RayStyle1
zsh-RayStyle1 is /usr/local/bin/zsh-RayStyle1
zsh is /usr/bin/zsh -> /usr/local/bin/zsh-RayStyle1
zsh is /bin/zsh -> /usr/local/bin/zsh-RayStyle1

REMOVE  '-v' AND ALIASES 'BECOME' FILES! :(
THIS ISN'T BROKEN BUT IT SURE ISN'T HELPFUL EITHER.
WITHOUT '-v' ONE CAN GET VERY MISLED, BUT CAN THAT BE HELPED?

$ whence -asm "zsh*"
/usr/local/bin/zsh << THIS IS AN ALIAS!
/usr/local/bin/zsh << THIS IS AN ALIAS NAMED zshh !!!!
/usr/local/bin/zsh -> /usr/local/bin/zsh-RayStyle1
/usr/local/bin/zsh-RayStyle1
/usr/bin/zsh -> /usr/local/bin/zsh-RayStyle1
/bin/zsh -> /usr/local/bin/zsh-RayStyle1




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