From: Ben Pfaff Date: Fri, 30 Jun 2006 00:51:42 +0000 (+0000) Subject: Use test -f because Solaris sh does not support -e. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3169784e3b952889f43e33edb405940401beabba;p=pintos-anon Use test -f because Solaris sh does not support -e. (Idiots can't read POSIX spec I guess.) --- diff --git a/src/utils/pintos-gdb b/src/utils/pintos-gdb index c986b40..4ef38d3 100755 --- a/src/utils/pintos-gdb +++ b/src/utils/pintos-gdb @@ -11,7 +11,7 @@ else fi # Run GDB. -if test -e "$GDBMACROS"; then +if test -f "$GDBMACROS"; then exec $GDB -x "$GDBMACROS" "$@" else echo "*** $GDBMACROS does not exist ***"