diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-01-22 17:41:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-01-22 17:41:10 +0000 |
commit | 6350753d56c238cd2ff513918ada55a7fe7526ed (patch) | |
tree | 3a9b293793cebd1e27e38d4ec1858e0f70ebe53a /usr.bin | |
parent | c2dbe80abd4688ecedbe0d0906ce0841b54e3753 (diff) |
expand(1) cannot treat argument correctly; shigio@wafu.netgate.net
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/expand/expand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/expand/expand.c b/usr.bin/expand/expand.c index 52b207c063d..1e60c6fbefb 100644 --- a/usr.bin/expand/expand.c +++ b/usr.bin/expand/expand.c @@ -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 @@ static char copyright[] = #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 <stdio.h> @@ -70,7 +70,7 @@ main(argc, argv) 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++; } |