-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Does cmd support interactive input?
1
For example, (cmd "/tmp/test.bash") does not prompt the user to enter a value, where tmp/test.bash is
#!/bin/bash
read x; echo "$x"; exit;
We can give it a string as input, but that isn't interactive enough if the end goal is to replace shells.
2
Another example arises when the system tries to read a password. For example,
CL> (cmd:cmd "sudo echo a")
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
Using -S doesn't work either as the repl does not try to read a password.
Metadata
Metadata
Assignees
Labels
No labels