diff options
author | hubertf <hubertf@NetBSD.org> | 1999-11-15 19:14:01 +0000 |
---|---|---|
committer | hubertf <hubertf@NetBSD.org> | 1999-11-15 19:14:01 +0000 |
commit | 243fa308555a5f145e62d9fca67961a56cc5bf71 (patch) | |
tree | 4d397ec92b449d31456da0b20b94503b2b7e4445 /wtf | |
parent | 2f535b7f4641635ebb7b7c4cd74b664fbe325048 (diff) | |
download | bsdgames-darwin-243fa308555a5f145e62d9fca67961a56cc5bf71.tar.gz bsdgames-darwin-243fa308555a5f145e62d9fca67961a56cc5bf71.tar.zst bsdgames-darwin-243fa308555a5f145e62d9fca67961a56cc5bf71.zip |
Do not match non-literals (REs).
A slightly different patch was submitted in PR 8388 by
Antti Kantee <pooka@iki.fi>
Diffstat (limited to 'wtf')
-rw-r--r-- | wtf/wtf | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: wtf,v 1.5 1999/08/13 03:02:06 sommerfeld Exp $ +# $NetBSD: wtf,v 1.6 1999/11/15 19:14:01 hubertf Exp $ # # Public domain # @@ -18,8 +18,8 @@ fi rv=0 while [ $# -gt 0 ] ; do target=`echo $1 | tr '[a-z]' '[A-Z]'` - ans=`sed -ne "/^$target[[:space:]]/s/^$target[[:space:]]*//p" \ - < $acronyms 2>/dev/null` + ans=`fgrep $target < $acronyms 2>/dev/null \ + | sed -ne "/^$target[[:space:]]/s/^$target[[:space:]]*//p"` if [ "$ans" != "" ] ; then echo "$target: $ans" else |