in reply to Re^2: Finding commands in Unix PATH
in thread Finding commands in Unix PATH
Zsh has several flags that affect parameter expansion. The k flag says to expand a hash into a list of its keys (rather than the default which is to expand into a list of its values; or you index it like ${commands[ls]} and get the path to ls). The o flag says to sort the resulting expansion by name in ascending order (the on is actually wrong but works; I was confuzzling glob expansion qualifiers where it's oX where X specifies what to sort on (e.g. n for filename, or m for modification time)).
So Perl's in a run for its money with regards to line-noisy-ness compared to terse zsh. :)
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|