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
This commit is contained in:
cls%seawood.org 2001-08-28 07:51:03 +00:00
parent 022a5d113f
commit 9bd8e241ee

View File

@ -107,7 +107,7 @@ if test "$echo_libs" = "yes"; then
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