diff options
author | jkh <jkh@FreeBSD.org> | 1995-02-15 00:07:59 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-02-15 00:07:59 +0000 |
commit | 783d0964f611ffa89dc07744a9986d0c4d6f03f8 (patch) | |
tree | 2d3ae87ce3d3238da875e685f3ddfb42205492d5 /usr.sbin/manctl | |
parent | 86c5f007ceac47f0bd3324bc81c88514c3e896ea (diff) | |
download | FreeBSD-src-783d0964f611ffa89dc07744a9986d0c4d6f03f8.zip FreeBSD-src-783d0964f611ffa89dc07744a9986d0c4d6f03f8.tar.gz |
I've found two bugs in manctl(8). There are two spurious ";" after a "then"
in the script. The result is the following :
203 [23:47] root@keltia:/build/cvs-1.4A2# manctl
/usr/sbin/manctl: 165: Syntax error: ";" unexpected
Here is the fix :
Submitted by: Ollivier Robert <Ollivier.Robert@keltia.frmug.fr.net>
Diffstat (limited to 'usr.sbin/manctl')
-rw-r--r-- | usr.sbin/manctl/manctl.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/manctl/manctl.sh b/usr.sbin/manctl/manctl.sh index e00b190..83ee619 100644 --- a/usr.sbin/manctl/manctl.sh +++ b/usr.sbin/manctl/manctl.sh @@ -30,7 +30,7 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $Id: manctl,v 1.5 1994/04/18 15:39:29 g89r4222 Exp $ +# $Id: manctl.sh,v 1.4 1994/04/18 18:46:50 csgr Exp $ # # manctl: # a utility for manipulating manual pages @@ -162,7 +162,7 @@ so_purge_page() local fname so_entries=`grep "^\.so" $1 | wc -l` - if [ $so_entries -eq 0 ] ; then ; return 0 ; fi + if [ $so_entries -eq 0 ] ; then return 0 ; fi # we have a page with a .so in it echo $1 contains a .so entry 2>&1 @@ -366,7 +366,7 @@ do_compress() # # dispatch options # -if [ $# = 0 ] ; then ; ctl_usage $0 ; fi ; +if [ $# = 0 ] ; then ctl_usage $0 ; fi ; case "$1" in -compress) shift ; do_compress "$@" ;; |