Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [[ -x =command ]]
- X-seq: zsh-users 12038
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: [[ -x =command ]]
- Date: Thu, 18 Oct 2007 09:26:41 +1300 (NZDT)
- In-reply-to: <20071017094414.GA5383@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
- References: <20071016210548.26560.qmail@xxxxxxxxxxx> <20071016211319.GA2910@xxxxxxxxxxxxxxx> <20071016214100.62242.qmail@xxxxxxxxxxx> <20071017094414.GA5383@xxxxxxxxxxxxxxx>
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