diff options
author | Glenn L McGrath | 2005-12-11 03:09:05 +0000 |
---|---|---|
committer | Glenn L McGrath | 2005-12-11 03:09:05 +0000 |
commit | 0bd0257fe0fb3835af056ec933b010aad2722f93 (patch) | |
tree | c6410295b7270b93ffab84419419b9b05586e370 /coreutils/head.c | |
parent | d77b781c1f0f0913b252c8f207f5518e77733dc3 (diff) | |
download | busybox-0bd0257fe0fb3835af056ec933b010aad2722f93.zip busybox-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/head.c')
-rw-r--r-- | coreutils/head.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/coreutils/head.c b/coreutils/head.c index dab4de1..a208733 100644 --- a/coreutils/head.c +++ b/coreutils/head.c @@ -56,6 +56,7 @@ int head_main(int argc, char **argv) int c; int retval = EXIT_SUCCESS; +#if defined CONFIG_FEATURE_SUSv2 || defined CONFIG_FEATURE_FANCY_HEAD /* Allow legacy syntax of an initial numeric option without -n. */ if ((argc > 1) && (argv[1][0] == '-') /* && (isdigit)(argv[1][1]) */ @@ -66,7 +67,9 @@ int head_main(int argc, char **argv) p = (*argv) + 1; goto GET_COUNT; } +#endif + /* No size benefit in converting this to bb_getopt_ulflags */ while ((opt = getopt(argc, argv, head_opts)) > 0) { switch(opt) { #ifdef CONFIG_FEATURE_FANCY_HEAD |