=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/expand/expand.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/expand/expand.c 1996/06/26 05:32:48 1.2 +++ src/usr.bin/expand/expand.c 1998/01/22 17:41:09 1.3 @@ -1,4 +1,4 @@ -/* $OpenBSD: expand.c,v 1.2 1996/06/26 05:32:48 deraadt Exp $ */ +/* $OpenBSD: expand.c,v 1.3 1998/01/22 17:41:09 deraadt Exp $ */ /* $NetBSD: expand.c,v 1.5 1995/09/02 06:19:46 jtc Exp $ */ /* @@ -44,7 +44,7 @@ #if 0 static char sccsid[] = "@(#)expand.c 8.1 (Berkeley) 6/9/93"; #endif -static char rcsid[] = "$OpenBSD: expand.c,v 1.2 1996/06/26 05:32:48 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: expand.c,v 1.3 1998/01/22 17:41:09 deraadt Exp $"; #endif /* not lint */ #include @@ -70,7 +70,7 @@ register int n; /* handle obsolete syntax */ - while (argc > 1 && argv[1][0] && isdigit(argv[1][1])) { + while (argc > 1 && argv[1][0] == '-' && isdigit(argv[1][1])) { getstops(&argv[1][1]); argc--; argv++; }