Just to go back a step... Why do you want to give it the same permissions as its parent?
Not to say you don't have a good reason, but in general things just work as they ought if you just make the directory and let the OS follow the user's umask and make the directory with defaults.
By explicitly setting permissions, you are often overriding things that the OS and user have set.
In reply to Re: mkdir with variable mask
by ctilmes
in thread mkdir with variable mask
by kreetrapper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |