<sad_plan>
does anyone have an idea on how I could replace read r foo bar? my rc doesnt have read, and Im trying to port over a script of mine.
sjalv has quit [Ping timeout: 260 seconds]
sjalv has joined #kisslinux
sjalv has quit [Ping timeout: 252 seconds]
<sad_plan>
if not, might there be a simple standalone read someplace?
AtleoS has quit [Ping timeout: 248 seconds]
AtleoS has joined #kisslinux
zlg has joined #kisslinux
<phoebos>
shouldn't rc have read?
<phoebos>
you could do word splitting and $@
fultilt has quit [Quit: WeeChat 3.7.1]
Den4ikRus has joined #kisslinux
Den4ikRus_ has joined #kisslinux
Den4ikRus has quit [*.net *.split]
Den4ikRus_ is now known as Den4ikRus
<sad_plan>
not those ive tried iirc. maybe if you include readline. but I dont belive rc has it by default.
<sad_plan>
hm, ill see what I can conjure up. maybe I can make it work
zlg has quit [Ping timeout: 252 seconds]
sjalv has joined #kisslinux
fultilt has joined #kisslinux
<sewn>
sad_plan: what are you tyring to do though
<sewn>
also $(cat /dev/stdin) can work
<sad_plan>
rewrite my watcher script in rc. i use wmutils' wew, which lists out window events. i then use a watcher script to act upon mapping and unmapping event, so focus would be retained automatically when groups would be set on/off. or windows being closed for that matter.
<sad_plan>
i think i found a solution that works. i pointed wew's output to a file, and made a variable out of the last line. rc can split a variable into pieces, so I only needed to do $foo(1) for events, and $foo(2) for window ids.
<sad_plan>
i tried 2 variable earlier, and that didnt work. but splitting a single variable worked.
<sad_plan>
i can show you the script later if you want sewn
<sewn>
wehhh
midfavila has joined #kisslinux
<midfavila>
bweh
<vulpine>
wah
<sad_plan>
midfavila: could you enlighten me with your wisdom about rc? if you havent already read it, im trying to replicate my watcher script for wew (wmutils util), so control focus when windows hidden/unhidden, or killed for that matter really. but rc doesnt have read. so I cant do wew | watcher, like I do in sh.