[Toybox] [PATCH] mkdir: accept both --parent and --parents as synonyms for -p.

enh enh at google.com
Tue Nov 13 13:23:14 PST 2018


Both occur in AOSP. (Until I looked, I had no idea there were _two_
long versions of -p...)
---
 toys/posix/mkdir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toys/posix/mkdir.c b/toys/posix/mkdir.c
index 05eac0b..956925d 100644
--- a/toys/posix/mkdir.c
+++ b/toys/posix/mkdir.c
@@ -4,7 +4,7 @@
  *
  * See http://opengroup.org/onlinepubs/9699919799/utilities/mkdir.html

-USE_MKDIR(NEWTOY(mkdir, "<1"USE_MKDIR_Z("Z:")"vpm:",
TOYFLAG_BIN|TOYFLAG_UMASK))
+USE_MKDIR(NEWTOY(mkdir, "<1"USE_MKDIR_Z("Z:")"vp(parent)(parents)m:",
TOYFLAG_BIN|TOYFLAG_UMASK))

 config MKDIR
   bool "mkdir"
-- 
2.19.1.930.g4563a0d9d0-goog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mkdir-accept-both-parent-and-parents-as-synonyms-for.patch
Type: text/x-patch
Size: 871 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20181113/1145eca6/attachment.bin>


More information about the Toybox mailing list