diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-12-11 03:09:05 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-12-11 03:09:05 +0000 |
commit | b4278a33a965c9c950574c829265edd018dbe4fc (patch) | |
tree | c6410295b7270b93ffab84419419b9b05586e370 /coreutils/tail.c | |
parent | 9ce34d9eb4a006d94cb631c54a5f1bda9b79356f (diff) | |
download | busybox-w32-b4278a33a965c9c950574c829265edd018dbe4fc.tar.gz busybox-w32-b4278a33a965c9c950574c829265edd018dbe4fc.tar.bz2 busybox-w32-b4278a33a965c9c950574c829265edd018dbe4fc.zip |
Add build options to control SuS compatability, allows numeric
option handling to be disabled.
Defaults to enabled, so no changes in default behaviour
git-svn-id: svn://busybox.net/trunk/busybox@12835 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/tail.c')
-rw-r--r-- | coreutils/tail.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c index 1db1e2b0f..cc1517a7e 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c | |||
@@ -121,6 +121,7 @@ int tail_main(int argc, char **argv) | |||
121 | char *s, *buf; | 121 | char *s, *buf; |
122 | const char *fmt; | 122 | const char *fmt; |
123 | 123 | ||
124 | #ifdef CONFIG_FEATURE_SUSv2 | ||
124 | /* Allow legacy syntax of an initial numeric option without -n. */ | 125 | /* Allow legacy syntax of an initial numeric option without -n. */ |
125 | if (argc >=2 && ((argv[1][0] == '+') || ((argv[1][0] == '-') | 126 | if (argc >=2 && ((argv[1][0] == '+') || ((argv[1][0] == '-') |
126 | /* && (isdigit)(argv[1][1]) */ | 127 | /* && (isdigit)(argv[1][1]) */ |
@@ -130,6 +131,7 @@ int tail_main(int argc, char **argv) | |||
130 | optarg = argv[1]; | 131 | optarg = argv[1]; |
131 | goto GET_COUNT; | 132 | goto GET_COUNT; |
132 | } | 133 | } |
134 | #endif | ||
133 | 135 | ||
134 | while ((opt = getopt(argc, argv, tail_opts)) > 0) { | 136 | while ((opt = getopt(argc, argv, tail_opts)) > 0) { |
135 | switch (opt) { | 137 | switch (opt) { |