mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-26 04:30:27 +01:00
34068: create tempfiles without forking, and safe temp directory creation
This commit is contained in:
parent
200accac63
commit
33b3958064
13 changed files with 32 additions and 18 deletions
|
|
@ -10,7 +10,7 @@ fi
|
|||
if [[ $ZFTP_SYSTEM == UNIX* && $1 == */* ]]; then
|
||||
setopt localoptions clobber
|
||||
local tmpf=${TMPPREFIX}zfgm$$
|
||||
mv -f =(:) $tmpf
|
||||
mv -f =(<<<'') $tmpf
|
||||
|
||||
if [[ -n $WIDGET ]]; then
|
||||
local dir=${1:h}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue