This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[COMMIT] Properly quote $DJGPP in observer.sh
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 16 May 2005 00:05:47 +0200 (CEST)
- Subject: [COMMIT] Properly quote $DJGPP in observer.sh
The Solaris /bin/sh complains about the test. By adding the quotes
"$DJGPP" evaluates to an empty string instead of nothing and things work.
Committed as obvious,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* observer.sh: Quote $DJGPP.
Index: observer.sh
===================================================================
RCS file: /cvs/src/src/gdb/observer.sh,v
retrieving revision 1.6
diff -u -p -r1.6 observer.sh
--- observer.sh 12 May 2005 20:38:51 -0000 1.6
+++ observer.sh 15 May 2005 22:02:59 -0000
@@ -61,7 +61,7 @@ esac
# We are about to set IFS=:, so DOS-style file names with a drive
# letter and a colon will be in trouble.
-if test -n $DJGPP
+if test -n "$DJGPP"
then
texi=`echo $texi | sed -e 's,^\([a-zA-Z]\):/,/dev/\1/,'`
fi