std.process - avoid interaction with parent shell

Vladimir Panteleev thecybershadow.lists at
Mon Jul 20 22:04:56 UTC 2020

On Monday, 20 July 2020 at 20:55:52 UTC, Steven Schveighoffer 
> I tried redirecting /dev/null to stdin when executing my 
> application (and I assumed that would pass onto the process 
> child), but it still asks. What am I doing wrong?

Generically, I think you want to detach the program from the 
current terminal (as well as doing the above). I think setsid can 
be used for this purpose.

Specifically, checking git's source code, I see that setting the 
environment variable GIT_TERMINAL_PROMPT to 0 will disable 
password prompts.

More information about the Digitalmars-d-learn mailing list