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

Re: symlink chain.



On Jan 2,  1:53pm, Ray Andrews wrote:
}
} Another little gotcha:
} 
}     $ whence -s /usr/bin/zsh
}     /usr/bin/zsh -> /usr/local/bin/zsh-5.0.7-165-g2194da1
} 
}     $ whence -sa /usr/bin/zsh
}     (nothing)
} 
} ... why would the '-a' switch kill the '-s' switch?

The literal answer is because -a does a search of the command hash table
keys, and command full paths are values, not keys.

The more descriptive answer is because -a is supposed to mean a path
search for the argument, and the string "/usr/bin/zsh" is not the name
(as in, last path element) of a file found in a directory in $path.



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