mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-29 17:31:02 +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
|
|
@ -9,7 +9,7 @@ local pager w="${(qq)words}"
|
|||
integer debug_fd=-1
|
||||
{
|
||||
if [[ -t 2 ]]; then
|
||||
mv -f =(:) $tmp &&
|
||||
mv -f =(<<<'') $tmp &&
|
||||
exec {debug_fd}>&2 2>| $tmp
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue