ref: ef55ac8cdcb2971ce09f7c817e26c91e8d550489
parent: d5303a3bfb097a0a6816afdadcee3972974c4833
author: qwx <qwx@sciops.net>
date: Fri Jun 3 16:35:11 EDT 2022
s: safer write to file and exec
--- a/bin/s
+++ b/bin/s
@@ -7,10 +7,10 @@
echo nope >[1=2]
exit
}
- echo w
+ echo '^T'
c=''''^($*)^''''
f=$%
- echo !'{' cd `{basename -d $f} '&&' $c '}'
+ echo !'{' cd `{basename -d $f} '&&' '@{' $c '}' '}'
echo B /tmp/jam.err
echo e
echo b $f
@@ -39,7 +39,7 @@
echo nope >[1=2]
exit
}
- echo w
+ echo '^T'
echo !exec window -m -cd `{basename -d $%} $*
}