summaryrefslogtreecommitdiffstats
path: root/wtf/wtf
diff options
context:
space:
mode:
Diffstat (limited to 'wtf/wtf')
-rw-r--r--wtf/wtf9
1 files changed, 5 insertions, 4 deletions
diff --git a/wtf/wtf b/wtf/wtf
index d1167a9c..5972d7d6 100644
--- a/wtf/wtf
+++ b/wtf/wtf
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: wtf,v 1.18 2012/10/03 19:50:06 wiz Exp $
+# $NetBSD: wtf,v 1.19 2012/11/20 12:40:54 abs Exp $
#
# Public domain
#
@@ -8,7 +8,7 @@
PROGNAME="$(basename "$0")"
usage() {
- echo "usage: $PROGNAME [-f dbfile] [is] <acronym> ..."
+ echo "usage: $PROGNAME [-f dbfile] [is] term ..."
exit 1
}
@@ -76,10 +76,11 @@ for i; do
continue
fi
- # Try querying pkgsrc's help facility next
+ # If called from pkgsrc package directory,
+ # try querying pkgsrc's help facility next
if [ -f ../../mk/bsd.pkg.mk ]; then
ans="$(make help topic="$i")"
- if [ $? -eq 0 ]; then
+ if [ "$ans" != "No help found for $i." ]; then
echo "$i: $ans"
continue
fi