From 38b0f5d3f200588475a8daf444a08c0269f8eb28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sun, 17 May 1998 22:12:37 +0200 Subject: [PATCH] Some OS's (eg Dynix 3's (surprise!)) /bin/test don't understand -x, and print an error message. Rev: bin/smartlink:1.18 --- bin/smartlink | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/smartlink b/bin/smartlink index 94a77253ea..326e141bb8 100755 --- a/bin/smartlink +++ b/bin/smartlink @@ -77,9 +77,9 @@ while test x$1 = x -a x$# != x0; do shift done -if test -x /usr/bin/uname ; then +if test -x /usr/bin/uname 2>/dev/null; then UNAME=`/usr/bin/uname -sr` -elif test -x /bin/uname ; then +elif test -x /bin/uname 2>/dev/null; then UNAME=`/bin/uname -sr` else UNAME=unknown -- GitLab