aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-11-13 13:21:18 -0800
committerRob Landley <rob@landley.net>2018-11-13 15:48:25 -0600
commit9fb36217ced80914f0bc03599212da07c0b6dfd9 (patch)
treee35f4b09a4c40f60613039308ca767c622409fd7 /toys/posix
parent6a73e13d75d31da2c3f1145d8487725f0073a4b8 (diff)
downloadtoybox-9fb36217ced80914f0bc03599212da07c0b6dfd9.tar.gz
mkdir: accept both --parent and --parents as synonyms for -p.
Both occur in AOSP. (Until I looked, I had no idea there were _two_ long versions of -p...)
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/mkdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/mkdir.c b/toys/posix/mkdir.c
index 05eac0ba..956925da 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"