aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-10-12 14:26:32 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-10-12 14:26:32 +1300
commit1fc28ec7515b955de11bb1d6bf621ceb1379ea75 (patch)
tree34efabfb9137b2a9062b7d11cd951b78c4d60c01 /bash
parentCorrect a version check in han(1) (diff)
downloaddotfiles-1fc28ec7515b955de11bb1d6bf621ceb1379ea75.tar.gz
dotfiles-1fc28ec7515b955de11bb1d6bf621ceb1379ea75.zip
Add options terminator to scr() mktemp(1) call
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/scr.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/scr.bash b/bash/bashrc.d/scr.bash
index ff82b10a..d7248dbc 100644
--- a/bash/bashrc.d/scr.bash
+++ b/bash/bashrc.d/scr.bash
@@ -3,7 +3,7 @@
# argument is the string to use for naming the directory; defaults to "scr".
scr() {
if (($# <= 1)) ; then
- pushd -- "$(mktemp -dt "${1:-scr}".XXXXX)"
+ pushd -- "$(mktemp -dt -- "${1:-scr}".XXXXX)"
else
printf 'bash: %s: too many arguments\n' \
"$FUNCNAME" >&2