bc: convert to "G trick" - this returns bc to zero bss increase
[oweals/busybox.git] / coreutils / shuf.c
index 403041534811ae76333095046ef7e87eb6a3567e..fdbd3e9b2ebca4f72d3900c3af306eae7a4fd63d 100644 (file)
@@ -6,16 +6,16 @@
  *
  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
-
 //config:config SHUF
 //config:      bool "shuf (5.4 kb)"
 //config:      default y
 //config:      help
 //config:      Generate random permutations
 
-//kbuild:lib-$(CONFIG_SHUF) += shuf.o
 //applet:IF_SHUF(APPLET_NOEXEC(shuf, shuf, BB_DIR_USR_BIN, BB_SUID_DROP, shuf))
 
+//kbuild:lib-$(CONFIG_SHUF) += shuf.o
+
 //usage:#define shuf_trivial_usage
 //usage:       "[-e|-i L-H] [-n NUM] [-o FILE] [-z] [FILE|ARG...]"
 //usage:#define shuf_full_usage "\n\n"
@@ -70,8 +70,11 @@ int shuf_main(int argc, char **argv)
        unsigned numlines;
        char eol;
 
-       opt_complementary = "e--i:i--e"; /* mutually exclusive */
-       opts = getopt32(argv, OPT_STR, &opt_i_str, &opt_n_str, &opt_o_str);
+       opts = getopt32(argv, "^"
+                       OPT_STR
+                       "\0" "e--i:i--e"/* mutually exclusive */,
+                       &opt_i_str, &opt_n_str, &opt_o_str
+       );
 
        argc -= optind;
        argv += optind;