OpenSSH 3.7 testing (Re: 3.6p1 bug on SCO OpenServer)
Gert Doering
gert at greenie.muc.de
Mon Sep 15 23:47:01 EST 2003
Hi,
On Mon, Sep 15, 2003 at 11:30:10AM +0200, Thomas Binder wrote:
> On Mon, Sep 15, 2003 at 02:50:00PM +1000, Darren Tucker wrote:
> > > + if [ -e regress/Makefile ]; then \
> > > ^^
> > > -e is not portable.
> >
> > Oops. Is there a portable equivalent?
>
> I usually use
>
> if ls file-to-test >/dev/null 2>&1
> then
> [...]
> fi
if [ -f ... ] ; then \
...; \
fi
should be reasonably portable. That is, it works on SCO 3.2v4.2.
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany gert at greenie.muc.de
fax: +49-89-35655025 gert at net.informatik.tu-muenchen.de
More information about the openssh-unix-dev
mailing list