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

Re: [[ -x =command ]]



Matthew Wozniski <godlygeek@xxxxxxxxx>:
> On Wed, Oct 17, 2007 at 05:29:21PM +0200, Frank Terbeck wrote:
> > This will break for old things like opensolaris' /bin/sh.
> > If you leave the 'command' bit out, it'll work:
> SUSv2 has required the command builtin since at least 1997...  I still
> say mine's the most portable... B-)

Well, who said opensolaris' /bin/sh has got anything to do with SUSv2?
But if you consider, that it still reads /etc/profile, the 'command'
approach simply is not the most portable.

If you reduce the targets to POSIX compliant shells that's different,
of course.

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925



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