diff options
author | wosch <wosch@FreeBSD.org> | 1996-09-27 17:36:50 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1996-09-27 17:36:50 +0000 |
commit | 6d1aa03c4c80e94ddc41691ee77ab5655c36d2a8 (patch) | |
tree | 159577faf84604872c56817774daae20f421d86d /gnu | |
parent | e5c1c9b037046da09bacdbcbd5868d9365b83354 (diff) | |
download | FreeBSD-src-6d1aa03c4c80e94ddc41691ee77ab5655c36d2a8.zip FreeBSD-src-6d1aa03c4c80e94ddc41691ee77ab5655c36d2a8.tar.gz |
grep(1) should not parse manpages as arguments.
Now `apropos -xfer' works.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/man/apropos/apropos.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/man/apropos/apropos.sh b/gnu/usr.bin/man/apropos/apropos.sh index 1545dec..f726f1f 100644 --- a/gnu/usr.bin/man/apropos/apropos.sh +++ b/gnu/usr.bin/man/apropos/apropos.sh @@ -15,7 +15,7 @@ # The University of Texas at Austin # Austin, Texas 78712 # -# $Id: apropos.sh,v 1.5 1996/08/27 20:03:55 wosch Exp $ +# $Id: apropos.sh,v 1.6 1996/09/14 23:20:33 wosch Exp $ PATH=/bin:/usr/bin:$PATH @@ -71,7 +71,7 @@ esac for manpage do - if grep -hi $grepopt "$manpage" $mandir; then : + if grep -hi $grepopt -- "$manpage" $mandir; then : else echo "$manpage: nothing appropriate" fi @@ -90,9 +90,9 @@ done | # nothing found, exit if test -z "$line" -a ! -z "$line2"; then - printf "$line2" + printf -- "$line2" exit $exit_nomatch else - ( printf "$line2"; echo $line; cat ) | $PAGER + ( printf -- "$line2"; echo $line; cat ) | $PAGER fi ) |