From 639ebe297b5b257af61b338e5a00c70df4774559 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sun, 9 Mar 2003 17:13:46 +0000 Subject: * rmsym: Fix regular expression. --- winsup/cygwin/rmsym | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/rmsym') diff --git a/winsup/cygwin/rmsym b/winsup/cygwin/rmsym index 6858026..428aa9d 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 -- cgit v1.1