]> sipb.mit.edu Git - wiki.git/blobdiff - doc/safe-shell.mdwn
fix markup
[wiki.git] / doc / safe-shell.mdwn
index 7c9bbb38e1fa7dd27247d34c31d8c5ed82172c85..7b8f60114a3a8c1d31d64a9138d8451fbb67fa60 100644 (file)
@@ -54,8 +54,7 @@ Disable filename expansion (globbing) upon seeing `*`, `?`, etc..
 
 If your script depends on globbing, you obviously shouldn't set this. Instead,
 you may find
 
 If your script depends on globbing, you obviously shouldn't set this. Instead,
 you may find
-`[shopt](http://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html)
--s failglob` useful, which causes globs that don't get expanded to cause
+[`shopt -s failglob`](http://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html) useful, which causes globs that don't get expanded to cause
 errors, rather than getting passed to the command with the `*` intact.
 
 ### [`set -o pipefail`](http://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html)
 errors, rather than getting passed to the command with the `*` intact.
 
 ### [`set -o pipefail`](http://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html)
@@ -102,6 +101,10 @@ manual](http://www.gnu.org/software/bash/manual/html_node/Special-Parameters.htm
 for details on the distinction between `$*`, `$@`, and `"$@"` — the first
 and second are rarely what you want in a safe shell script.
 
 for details on the distinction between `$*`, `$@`, and `"$@"` — the first
 and second are rarely what you want in a safe shell script.
 
+## Temporary files
+
+TODO: mumble `mktemp`?
+
 ## Conclusion
 
 When possible, instead of writing a "safe" shell script, *use a higher-level
 ## Conclusion
 
 When possible, instead of writing a "safe" shell script, *use a higher-level