Escape ^ when calling grep as some shells interpret ^ instead of passing it to g
authorcls%seawood.org
Tue, 28 Aug 2001 07:51:03 +0000
changeset 2025 697a730a7c1c0403a2b472db5b42b56639610e9b
parent 2020 bddf1a7c9fc8addf39069f89120bbfe934fd8ee1
child 2027 d13ab47c75006ed3fe8dbb6d4eab7ce4741544c8
push idunknown
push userunknown
push dateunknown
bugs96997
Escape ^ when calling grep as some shells interpret ^ instead of passing it to g rep. Thanks to dave@arsdigita.com (Drazen Kacar) for the patch. Bug #96997 r=cls sr=wtc
config/nspr-config.in
--- a/config/nspr-config.in
+++ b/config/nspr-config.in
@@ -102,15 +102,15 @@ if test "$echo_libs" = "yes"; then
       if test -n "$lib_plc"; then
 	libdirs="$libdirs -lplc${major_version}"
       fi
       if test -n "$lib_nspr"; then
 	libdirs="$libdirs -lnspr${major_version}"
       fi
       os_ldflags="@LDFLAGS@"
       for i in $os_ldflags ; do
-	if echo $i | grep ^-L >/dev/null; then
+	if echo $i | grep \^-L >/dev/null; then
 	  libdirs="$libdirs $i"
         fi
       done
       echo $libdirs @OS_LIBS@
 fi