From 2801a0cd4761581c156a9b5e28802dbc9266968b Mon Sep 17 00:00:00 2001 From: Chris Timmons Date: Mon, 2 Feb 1998 07:10:59 +0000 Subject: [PATCH] PR: bin/5529 Submitted by: Shigio Yamaguchi Do not misinterpret file names with a digit in the 2nd column as a tab stop specification. --- usr.bin/expand/expand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/expand/expand.c b/usr.bin/expand/expand.c index 9d92f41cfda..37c94644617 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++; }