aboutsummaryrefslogtreecommitdiff
path: root/coreutils/fold.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2005-12-11 03:09:05 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2005-12-11 03:09:05 +0000
commit0bd0257fe0fb3835af056ec933b010aad2722f93 (patch)
treec6410295b7270b93ffab84419419b9b05586e370 /coreutils/fold.c
parentd77b781c1f0f0913b252c8f207f5518e77733dc3 (diff)
downloadbusybox-0bd0257fe0fb3835af056ec933b010aad2722f93.tar.gz
Add build options to control SuS compatability, allows numeric
option handling to be disabled. Defaults to enabled, so no changes in default behaviour
Diffstat (limited to 'coreutils/fold.c')
-rw-r--r--coreutils/fold.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/coreutils/fold.c b/coreutils/fold.c
index 8f74ed88d..ee0fdc250 100644
--- a/coreutils/fold.c
+++ b/coreutils/fold.c
@@ -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)