shithub: rc

Download patch

ref: 5b47e34cb53031f557f427b249118c84f29925bc
parent: d5ea63a02a7a4b0cedecdd66e242125e065fa767
author: qwx <qwx@sciops.net>
date: Mon Jul 31 00:47:54 EDT 2023

kx: handle rc expressions in file list to interpret later

--- a/bin/kx
+++ b/bin/kx
@@ -22,14 +22,15 @@
 . /tmp/sizes.$sysname
 
 f=()
+cat <<'!' >/tmp/work.$pid
+#!/bin/rc
+label kx.$pid
 if(test -f $home/lib/kx){
 	f=`{cat $home/lib/kx}
 	eval 'f=('^$"f^')'
 }
-cat <<! >/tmp/work.$pid
-#!/bin/rc
-label kx.$pid
-window -r $bsamrect 'echo 4 >/env/tabstop; echo -n /lib/font/bit/terminus/unicode.12m.font >/env/font; jam $f'
+. /tmp/sizes.$sysname
+window -r $bsamrect 'echo 4 >/env/tabstop; echo -n /lib/font/bit/terminus/unicode.12m.font >/env/font; jam '^$"f
 !
 
 cat <<! >/tmp/kx.$pid