From 1fc28ec7515b955de11bb1d6bf621ceb1379ea75 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 12 Oct 2015 14:26:32 +1300 Subject: Add options terminator to scr() mktemp(1) call --- bash/bashrc.d/scr.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash') 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 -- cgit v1.2.3