Require all compatability options to begin with '-'.
PR: 4145
This commit is contained in:
parent
a8c2a76de6
commit
faba086be3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28423
@ -46,7 +46,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)join.c 8.6 (Berkeley) 5/4/95";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: join.c,v 1.7 1997/07/15 09:57:28 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -515,6 +515,9 @@ obsolete(argv)
|
||||
/* Return if "--". */
|
||||
if (ap[0] == '-' && ap[1] == '-')
|
||||
return;
|
||||
/* skip if not an option */
|
||||
if (ap[0] != '-')
|
||||
continue;
|
||||
switch (ap[1]) {
|
||||
case 'a':
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user