diff options
author | cwt <cwt@FreeBSD.org> | 1998-02-02 07:10:59 +0000 |
---|---|---|
committer | cwt <cwt@FreeBSD.org> | 1998-02-02 07:10:59 +0000 |
commit | 48380742339ab185efc64889a77ed4e50d25adc2 (patch) | |
tree | 8e3b3f8b1ca7b7aa1c696cfa9174888bb18a5b9e /usr.bin/expand | |
parent | d6965117a991ed79958f6f43994e4d6b3ab7a0cf (diff) | |
download | FreeBSD-src-48380742339ab185efc64889a77ed4e50d25adc2.zip FreeBSD-src-48380742339ab185efc64889a77ed4e50d25adc2.tar.gz |
PR: bin/5529
Submitted by: Shigio Yamaguchi <shigio@wafu.netgate.net>
Do not misinterpret file names with a digit in the 2nd column as
a tab stop specification.
Diffstat (limited to 'usr.bin/expand')
-rw-r--r-- | usr.bin/expand/expand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/expand/expand.c b/usr.bin/expand/expand.c index 9d92f41..37c9464 100644 --- a/usr.bin/expand/expand.c +++ b/usr.bin/expand/expand.c @@ -42,7 +42,7 @@ static char copyright[] = static char sccsid[] = "@(#)expand.c 8.1 (Berkeley) 6/9/93"; #else static const char rcsid[] = - "$Id$"; + "$Id: expand.c,v 1.2 1997/07/01 06:34:31 charnier Exp $"; #endif #endif /* not lint */ @@ -69,7 +69,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++; } |