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:
parent
d6965117a9
commit
4838074233
@ -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++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user