Mkdir -pv not verbose

If I run mkdir -pv, it works -p, but I do not get verbose output; however, if I run only mkdir -v, then the detailed output will look as expected. You can also notice that the long form -vdoes not work at all.

From my testing:: mkdir -p a/b/ccreates a/, a/b/and a/b/c/does not give output to the terminal (as expected)

mkdir -v d: creates d/and outputs mkdir: created directory 'd'(as expected)

mkdir -pv e/f/g: creates e/, e/f/and e/f/g/does not give output to the terminal (why?)

mkdir --verbose h: gives an error illegal option -- -(why?)


Update . I published an error report with Apple on this issue and received the following response:

enter image description here

, "-v ", , mkdir -v , , OSX, , .

+6
2

BSD, ( ) POSIX, ( ) GNU (, ). man -v -p, -p , , , -v (, , ).

- Darwin BSD Apple. ; , , , . (GNU mkdir -v -p, " ".)

SnoringFrog:

- GNU mkdir OSX. GNU coreutils, , Mac OS X GNU . mkdir gmkdir, ( , --default-names GNU).

+8

, ( -v ):

mkdir -v path && 
mkdir -v path/to && 
mkdir -v path/to/{destination1,destination2,etc} ; 

?!

0

All Articles