Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [[ -x =command ]]
- X-seq: zsh-users 12032
- From: Matthew Wozniski <godlygeek@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: [[ -x =command ]]
- Date: Wed, 17 Oct 2007 10:50:21 -0400
- Cc: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:x-editor:user-agent; bh=uh3u7n7HFS8vYU2TEZ6kJMfQD0NUqLFnYl+oLI0gTus=; b=d7MO5y5EFlr4F9ggPBUTgk1JjUDM9Xr5JlNtEI4LzojJe18ltzPxHHIVCJh2k/6eVoFyPThIn9zwtIQwsCSevYBCETNJ/ZMXz3vzCrouPdPkosU5IOcor66EiCh4x00Gti9SGNWoOd2EAuUP2MMW1dGJcjQz3aRTuoWzMl1JDC8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:x-editor:user-agent; b=GjzZts8gEKbcvCoJGcRm3AlZ6+QmacUvfIlZCzDS/DttmG4RhoITVa5q0FnT0I/1BX5DyNROEJDpjuMDhl7cndWdvnRW7xYxeVffm7BjlLovtG2TjnNjeX5Cnzqzn+7ih/UqoJTXnfyY+diJGlP2/NFJPTnKrHVuKvHZ48wDdGI=
- In-reply-to: <2d460de70710170617g2730fe81u197bd0bc2073cab8@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20071016210548.26560.qmail@xxxxxxxxxxx> <20071016211319.GA2910@xxxxxxxxxxxxxxx> <20071016214100.62242.qmail@xxxxxxxxxxx> <20071017094414.GA5383@xxxxxxxxxxxxxxx> <20071017113432.GA13054@mastermind> <20071017125242.GB5383@xxxxxxxxxxxxxxx> <2d460de70710170617g2730fe81u197bd0bc2073cab8@xxxxxxxxxxxxxx>
On Wed, Oct 17, 2007 at 03:17:58PM +0200, Richard Hartmann wrote:
> whence is a built-in, so unless I am missing something, it should be the
> most portable solution.
Yes, but built in to what? zsh has whence, but it certainly isn't in
bash or sh. The most portable solution I can see is
command which most >/dev/null && { PAGER=most; export PAGER; }
which works for me in busybox's ash shell, as well as bash and dash.
~Matt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author