Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/wtf - correct `usage' message;
details: https://anonhg.NetBSD.org/src/rev/ad18964a72e4
branches: trunk
changeset: 781849:ad18964a72e4
user: wiz <wiz%NetBSD.org@localhost>
date: Wed Oct 03 19:50:06 2012 +0000
description:
- correct `usage' message;
- improve wording.
>From Bug Hunting.
diffstat:
games/wtf/wtf | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 3e7380dbfbfc -r ad18964a72e4 games/wtf/wtf
--- a/games/wtf/wtf Wed Oct 03 19:41:46 2012 +0000
+++ b/games/wtf/wtf Wed Oct 03 19:50:06 2012 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: wtf,v 1.17 2012/04/26 03:16:13 christos Exp $
+# $NetBSD: wtf,v 1.18 2012/10/03 19:50:06 wiz Exp $
#
# Public domain
#
@@ -8,7 +8,7 @@
PROGNAME="$(basename "$0")"
usage() {
- echo "Usage: $PROGNAME [-f dbfile] [is] <acronym>"
+ echo "usage: $PROGNAME [-f dbfile] [is] <acronym> ..."
exit 1
}
@@ -39,21 +39,21 @@
fi
if [ -z "$acronyms" ]; then
- echo "$PROGNAME: acronyms database not found!" >&2
+ echo "$PROGNAME: acronym database not found!" >&2
exit 1
fi
for f in $acronyms; do
if [ ! -f $f ]; then
- echo "$PROGNAME: cannot open acronyms database file \`$f'" >&2
+ echo "$PROGNAME: cannot open acronym database file \`$f'" >&2
exit 1
fi
done
rv=0
for i; do
- # Search acronyms list first
+ # Search acronym list first
target="$(echo "$i" | tr '[a-z]' '[A-Z]')"
ans="$(fgrep -h "$target" $acronyms 2>/dev/null \
| sed -ne "\|^$target[[:space:]]|s|^$target[[:space:]]*||p")"
Home |
Main Index |
Thread Index |
Old Index