tmpdir is local

This commit is contained in:
Bruno Pinto 2012-07-24 10:40:35 -03:00
parent f5e7eacbe0
commit 266512f577

View File

@ -13,11 +13,11 @@ function backup_function
end
function _create_tmpname
set -l TMPDIR /tmp
set -l tmpdir /tmp
set -g tmpname (printf "$TMPDIR/fish_funced_%d_%d.fish" %self (random))
set -g tmpname (printf "$tmpdir/fish_funced_%d_%d.fish" %self (random))
while test -f $tmpname
set -g tmpname (printf "$TMPDIR/fish_funced_%d_%d.fish" %self (random))
set -g tmpname (printf "$tmpdir/fish_funced_%d_%d.fish" %self (random))
end
end