Add build options to control SuS compatability, allows numeric

option handling to be disabled.
Defaults to enabled, so no changes in default behaviour
This commit is contained in:
Glenn L McGrath
2005-12-11 03:09:05 +00:00
parent d77b781c1f
commit 0bd0257fe0
5 changed files with 24 additions and 1 deletions

View File

@@ -52,6 +52,8 @@ extern int fold_main(int argc, char **argv)
int i;
int errs = 0;
#ifdef CONFIG_FEATURE_SUSv2_OBSOLETE
/* Turn any numeric options into -w options. */
for (i = 1; i < argc; i++) {
char const *a = argv[i];
@@ -69,6 +71,7 @@ extern int fold_main(int argc, char **argv)
}
}
}
#endif
flags = bb_getopt_ulflags(argc, argv, "bsw:", &w_opt);
if (flags & FLAG_WIDTH)