ref: 0a5e1ed63e05c429a2355505a015c2beb9ca656a
parent: b150102e758882d02bec75f08b0b2ccd03ebf543
author: qwx <qwx@sciops.net>
date: Tue Mar 29 01:50:35 EDT 2022
s: fix ^R command for future reference: you may well execute whatever you want in that fn, but whatever you echo (to stdout) will only happen afterwards
--- a/bin/s
+++ b/bin/s
@@ -4,9 +4,11 @@
# ^R [cmd] # run command and send output to jam.err window
fn R{
echo w
+ f=$%
+ echo !'{' cd `{basename -d $%} '&&' $"* '}'
echo B /tmp/jam.err
- { cd `{basename -d $%} && $* } >[1=2]
echo e
+ echo b $f
}
# !o name expr # save a sam command