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

Re: [[ -x =command ]]



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