[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ile, once again
But I do have a nice workaround: We have here a nice little program
called xcb that will, among various other things, print the contents
of the X cut buffer on stdout. So given the function below, I can now
make a selection with the mouse and run the command `,' to execute the
selection:
fn , b {
let (tmp=/tmp/es.rc.$pid) {
catch @ what more {
rm -f $tmp
if {!~ $what done} {throw $what $more}} {
if {~ $#b 0} {b=0}
xcb -p <={%flatten , $b} > $tmp
. $tmp
throw done}}}
Give arguments to , and it will execute the given cut buffers instead.
I like the name , because it reminds me of . (and is easy to type).
- Harald