aboutsummaryrefslogtreecommitdiff
path: root/community/coreutils/patches/busybox-style.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/coreutils/patches/busybox-style.patch')
-rw-r--r--community/coreutils/patches/busybox-style.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/community/coreutils/patches/busybox-style.patch b/community/coreutils/patches/busybox-style.patch
new file mode 100644
index 00000000..fbd7f3b3
--- /dev/null
+++ b/community/coreutils/patches/busybox-style.patch
@@ -0,0 +1,16 @@
+This adds a busybox-style usage that a lot of people are used to, to the
+coreutils(1) program.
+--- a/src/coreutils.c Wed Jul 5 13:09:55 2023
++++ b/src/coreutils.c Wed Sep 6 16:21:00 2023
+@@ -169,6 +169,11 @@
+ else
+ arg_name = prog_name;
+ }
++ else if (!STRPREFIX (argv[1], "-"))
++ {
++ nskip = 1;
++ arg_name = prog_name = argv[1];
++ }
+
+ if (nskip)
+ {