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

Re: Check existence of a program



On Tue, 1 Feb 2011, Anonymous bin Ich wrote:

I am having trouble checking for existence of a program.
==============

[[ -x $(whence -p program) ]] && echo $(whence -p program)


--
        ...atom

 ________________________
 http://atom.smasher.org/
 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
 -------------------------------------------------

	"We do many things at the federal level
	 that would be considered dishonest and
	 illegal if done in the private sector."
		-- Ronald Reagan



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