diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 983d5a68c..34730cf71 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2003-03-09 Corinna Vinschen + + * rmsym: Fix regular expression. + 2003-03-09 Christopher Faylor * Makefile.in: Change from using new-* to cygwin0 for temporary diff --git a/winsup/cygwin/rmsym b/winsup/cygwin/rmsym index 685802684..428aa9d50 100755 --- a/winsup/cygwin/rmsym +++ b/winsup/cygwin/rmsym @@ -3,8 +3,8 @@ lib=$1; shift nm=$1; shift ar=$1; shift ranlib=$1; shift -grepit=`echo $* | sed 's/ /|__imp__/g'` -[ -n "$grepit" ] && grepit="__imp__$grepit" +grepit=`echo $* | sed 's/ /\$|__imp__/g'` +[ -n "$grepit" ] && grepit="__imp__$grepit\$" objs=`$nm $lib | awk -F: '/^d[0-9]*.o:/ {obj=$1} '"/$grepit/"'{print obj}'` [ -n "$objs" ] || exit 1 $ar d $lib $objs