1N/A/*********************************************************************** 1N/A* This software is part of the ast package * 1N/A* Copyright (c) 1992-2011 AT&T Intellectual Property * 1N/A* and is licensed under the * 1N/A* Common Public License, Version 1.0 * 1N/A* by AT&T Intellectual Property * 1N/A* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* Glenn Fowler <gsf@research.att.com> * 1N/A* David Korn <dgk@research.att.com> * 1N/A***********************************************************************/ 1N/A * AT&T Bell Laboratories 1N/A"[-?\n@(#)$Id: mkdir (AT&T Research) 2010-04-08 $\n]" 1N/A"[+NAME?mkdir - make directories]" 1N/A"[+DESCRIPTION?\bmkdir\b creates one or more directories. By " 1N/A "default, the mode of created directories is \ba=rwx\b minus the " 1N/A "bits set in the \bumask\b(1).]" 1N/A"[m:mode]:[mode?Set the mode of created directories to \amode\a. " 1N/A "\amode\a is symbolic or octal mode as in \bchmod\b(1). Relative " 1N/A "modes assume an initial mode of \ba=rwx\b.]" 1N/A"[p:parents?Create any missing intermediate pathname components. For " 1N/A "each dir operand that does not name an existing directory, effects " 1N/A "equivalent to those caused by the following command shall occur: " 1N/A "\vmkdir -p -m $(umask -S),u+wx $(dirname dir) && mkdir [-m mode]] " 1N/A "dir\v where the \b-m\b mode option represents that option supplied to " 1N/A "the original invocation of \bmkdir\b, if any. Each dir operand that " 1N/A "names an existing directory shall be ignored without error.]" 1N/A"[v:verbose?Print a message on the standard error for each created " 1N/A "[+0?All directories created successfully, or the \b-p\b option " 1N/A "was specified and all the specified directories now exist.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bchmod\b(1), \brmdir\b(1), \bumask\b(1)]" 1N/A * -p option, preserve intermediates 1N/A * first eliminate trailing /'s 1N/A /* skip over slashes */ 1N/A /* skip to next component */