* Andreas Schwab
Dimstar / Dominique Leuenberger
writes: Type is clearly good for interactive use..
type is perfectly usable non-interactively as well.
but $(type ls) will not get you anywhere, whereas $(which ls) actually works
type -p is what you want.
No, it isn't, you want "command -v". In contrast to the "type" bashism, it is specified by POSIX, implemented as a regular builtin in all Bourne-derived shells present in Factory, and perfectly capable of covering the most common use-case of "which", namely printing the pathname of the given utility while taking PATH into account. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org