Re: [code] [textadept] Curses `os.spawn` Shell String Parsing

From: Mitchell <m.att.foicica.com>
Date: Thu, 13 Dec 2018 22:17:02 -0500 (EST)

Hi Chris,

On Thu, 13 Dec 2018, Chris Emerson wrote:

> Hi,
>
> As another curses user, that seems reasonable (though it would of course
> potentially break existing setups - but Textadept seems good at embracing
> minor breaks for longer-term improvement. :-) )
>
> On the topic of os.spawn, I've recently got to the bottom of a problem I've
> had with it: some programs behave differently when they have a pipe as stdin.
> I keep having ripgrep appearing to hang - it sees a pipe as stdin and assumes
> it should read from that instead of searching from the current directory.
>
> So it would be useful to have an option to set stdin of the spawned process
> to /dev/null instead of a pipe that won't be used. (I can work around it by
> indirecting through a one-line shell script, of course).

What happens when you close stdin with `proc:close()`? Do your commands run as expected?

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Thu 13 Dec 2018 - 22:17:02 EST

This archive was generated by hypermail 2.2.0 : Fri 14 Dec 2018 - 06:49:58 EST