Skip to content

mkdir: no error when no path is provided #6788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
andrewliebenow opened this issue Oct 17, 2024 · 0 comments · Fixed by #6790
Closed

mkdir: no error when no path is provided #6788

andrewliebenow opened this issue Oct 17, 2024 · 0 comments · Fixed by #6790
Labels

Comments

@andrewliebenow
Copy link
Contributor

❯ /usr/bin/mkdir ; printf '%s\n' "${?:?}"
/usr/bin/mkdir: missing operand
Try '/usr/bin/mkdir --help' for more information.
1

❯ coreutils mkdir ; printf '%s\n' "${?:?}"
0

mkdir should not exit with a 0 exit code when no path is provided, and an error/help message should be printed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants