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

Re: [[ -x =command ]]



On Wed, 17 Oct 2007, Stephane Chazelas wrote:

for PAGER in most less w3m pager more; do
 command -v "$PAGER" > /dev/null 2>&1 && break
done
export PAGER

as I don't think you need the full path in $PAGER.
================

no, you don't need the full path. but at the moment i'm fine with either `most` or "whatever the default is". if i wind up with a list of preferences (or even a 2nd preference) i'll definitely use the loop idea.


--
        ...atom

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

	A student asked his old Sufi Master if he should tie up
	his camel for the night, so that it wouldn't wander
	away while they were sleeping or if doing so was an
	insult to God. Should he leave the camel untied to
	show his trust in God that the camel wouldn't run away?
	The Master replied "Trust God AND tie up your camel."




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