-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to pipe yes
into a confirmation
#170
Comments
Probably it could have a code path for the case when stdin is not a tty. |
@jgrund I used #!/usr/local/bin/expect -f
set timeout -1
spawn ./tests.sh
match_max 100000
expect -exact "Are you sure you want to delete the project key: CITS? \[y/n\] �\[?25l"
send -- "y"
expect eof My biggest problem was finding the ending "[?25l" |
#82 using rustyline may be able to solve this issue. |
Draft
4 tasks
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
When wanting to bypass a confirmation in an automated way, it does not appear possible to use the
yes
command, I.E:yes | some_dialoguer_cmd
Will just hang
The text was updated successfully, but these errors were encountered: