Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/getopt Use `-ne' to compare numbers instead of `!=' ...



details:   https://anonhg.NetBSD.org/src/rev/183283573729
branches:  trunk
changeset: 546990:183283573729
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Sat May 10 17:02:04 2003 +0000

description:
Use `-ne' to compare numbers instead of `!=' in the example.

diffstat:

 usr.bin/getopt/getopt.1 |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 76d5a5af1b72 -r 183283573729 usr.bin/getopt/getopt.1
--- a/usr.bin/getopt/getopt.1   Sat May 10 16:20:23 2003 +0000
+++ b/usr.bin/getopt/getopt.1   Sat May 10 17:02:04 2003 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: getopt.1,v 1.15 2003/02/25 10:35:43 wiz Exp $
+.\"    $NetBSD: getopt.1,v 1.16 2003/05/10 17:02:04 jmmv Exp $
 .Dd November 9, 2000
 .Dt GETOPT 1
 .Os
@@ -45,7 +45,7 @@
 .Pp
 .Bd -literal -offset indent
 args=\`getopt abc: $*\`
-if [ $? != 0 ]; then
+if [ $? \-ne 0 ]; then
        echo 'Usage: ...'
        exit 2
 fi



Home | Main Index | Thread Index | Old Index