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.
This commit is contained in:
Chris Timmons 1998-02-02 07:10:59 +00:00
parent be6eb0fb17
commit 2801a0cd47
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33016

View file

@ -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++;
}