summaryrefslogtreecommitdiffstats
path: root/wtf
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1999-11-15 19:14:01 +0000
committerhubertf <hubertf@NetBSD.org>1999-11-15 19:14:01 +0000
commit243fa308555a5f145e62d9fca67961a56cc5bf71 (patch)
tree4d397ec92b449d31456da0b20b94503b2b7e4445 /wtf
parent2f535b7f4641635ebb7b7c4cd74b664fbe325048 (diff)
downloadbsdgames-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/wtf6
1 files changed, 3 insertions, 3 deletions
diff --git a/wtf/wtf b/wtf/wtf
index 623c2b8d..ff8a12c3 100644
--- a/wtf/wtf
+++ b/wtf/wtf
@@ -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