Discussion:
[PATCH] mkdir: accept both --parent and --parents as synonyms for -p.
(too old to reply)
enh
2018-11-13 21:23:14 UTC
Permalink
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
Loading...