<abu[m]>
As it is in 'pipe', it reads from the pipe
<razzy>
beneroth: it is reading from call. imho stdout
<beneroth>
call is not giving you stdout
<abu[m]>
yes, that's what I told razzy
<abu[m]>
He abuses 'call' ;)
alexshendi has joined #picolisp
<beneroth>
(in '(sh -c "cat ./.pil/pilrc | fzf") (read)) could do
<beneroth>
but you start fzf without arguments
<beneroth>
that gives an interactive fzf prompt, no?
<abu[m]>
right, and the difference is that 'call' does more (see above)
<beneroth>
razzy, either you are using fzf wrong (you need it to give arguments) or you want to wrap the interactive fzf session?
<beneroth>
the second thing I would do with (pipe (exec ...) ...), but its tricky insofar as your wrapping code must always fit the state of the interactive program.
<abu[m]>
Or use temporary files instead ef a pipe
<razzy>
beneroth: i want to wrap interactive session. yes. it was working before.
<beneroth>
additionally it might be possible that fzf detects when its running in a script instead of a interactive session (lack of tty). that can be circumvented by wrapping the call to fzf into script, but tricky again
<beneroth>
razzy, try to do what you want to do without picolisp first, just with shell
<beneroth>
ah
<beneroth>
you're using picolisp in a script or just in the repl?
<razzy>
repl
<beneroth>
yeah, then call looks like it works, because it will bind to your repl
calle has quit [Ping timeout: 260 seconds]
<beneroth>
so I guess (call 'sh '-c "cat ./.pil/pilrc | fzf") used to work?
<beneroth>
what error do you get if you do that now?
<razzy>
i do not want to waste collective time. i will look at changelog.
<beneroth>
ok
<abu[m]>
First try only 'call', without a pipe
<beneroth>
for only using it in repl, (call) is okay
<razzy>
beneroth: Failed to read /dev/tty
<beneroth>
razzy, yeah so fzf detects that it has no tty
<beneroth>
which is correct
<abu[m]>
razzy, I think this is not due to the above change in 'tty' flag
<beneroth>
T
<beneroth>
it's probably a change in fzf and not pil
<abu[m]>
yes, might well be
<beneroth>
I have to go now, will write some more later
beneroth has quit [Quit: Leaving]
<abu[m]>
beneroth: Right, it has no TTY
<abu[m]>
CU ☺
<razzy>
chmm.
razzy has quit [Quit: leaving]
<abu[m]>
Can fzf not communicate via some other channel? Like a socket? Stdio is over-used here.
alexshe91 has joined #picolisp
alexshendi has quit [Ping timeout: 272 seconds]
calle has joined #picolisp
alexshe91 has quit [Quit: -a- Connection Timed Out]
calle has quit [Ping timeout: 268 seconds]
alexshendi has joined #picolisp
calle has joined #picolisp
calle has quit [Ping timeout: 255 seconds]
alexshendi has quit [Ping timeout: 272 seconds]
alexshendi has joined #picolisp
alexshe66 has joined #picolisp
alexshendi has quit [Ping timeout: 272 seconds]
alexshendi has joined #picolisp
alexshe66 has quit [Ping timeout: 264 seconds]
alexshe92 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
calle has joined #picolisp
alexshe92 has quit [Read error: Connection reset by peer]
alexshe41 has joined #picolisp
alexshe41 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshendi has quit [Ping timeout: 272 seconds]
alexshendi has joined #picolisp
alexshendi has quit [Ping timeout: 272 seconds]
alexshendi has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
chexum has quit [Remote host closed the connection]