Skip to content

Instantly share code, notes, and snippets.

@kaworu
Created September 2, 2016 09:58
Show Gist options
  • Save kaworu/dad69ffa14c7c04786807f26b4a0175f to your computer and use it in GitHub Desktop.
Save kaworu/dad69ffa14c7c04786807f26b4a0175f to your computer and use it in GitHub Desktop.
#!/bin/sh
mkdir_options="-m 700"
mkdir $mkdir_options /tmp/foo
rmdir /tmp/foo
@kaworu
Copy link
Author

kaworu commented Sep 2, 2016

% uname -a
FreeBSD smaug.kaworu.ch 10.3-RELEASE-p4 FreeBSD 10.3-RELEASE-p4 #0: Sat May 28 12:23:44 UTC 2016     [email protected]:/usr/obj/usr/src/sys/GENERIC  amd64
% zsh --no-globalrcs --no-rcs zsh-is-not-POSIX.sh 
mkdir: invalid file mode:  700
rmdir: /tmp/foo: No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment