This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]