我找不到任何关于这种行为改变的参考
$ mkdir --version
mkdir (GNU coreutils) 9.0
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie.
这些文件夹都不存在。
$ mkdir asdfg/qwerty
mkdir: created directory 'asdfg'
mkdir: created directory 'asdfg/qwerty'
但是,对于 mkdir (GNU coreutils) 8.25,行为符合预期。
➜ ~ mkdir asdfg/qwerty
mkdir: cannot create directory ‘asdfg/qwerty’: No such file or directory