Timeline for How to pass shell variables to a command that reads console input in a script?
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 17, 2020 at 11:10 | vote | accept | Manu Ruiz Ruiz | ||
| Nov 13, 2020 at 10:49 | history | edited | AdminBee | CC BY-SA 4.0 | Reformulate caveat |
| Nov 12, 2020 at 19:34 | comment | added | user313992 | I suspect that the linked answer is misdiagnosing the issue -- git is probably opening /dev/tty directly rather than using its stdin in order to read the user and password, just like ssh does. In fact, I cannot think of many programs where your answer would work at all -- maybe some old versions of su (NOT the one from Debian). | |
| Nov 12, 2020 at 12:12 | history | edited | AdminBee | CC BY-SA 4.0 | Add notice on git credentials |
| Nov 12, 2020 at 12:01 | comment | added | Manu Ruiz Ruiz | Found this https://superuser.com/questions/1078435/piping-credentails-to-git-push. You can't pipe things to git push, but it works for other commands. Thanks! | |
| Nov 12, 2020 at 11:48 | comment | added | Manu Ruiz Ruiz | It didn't work for me. It still stops the execution at Username for 'https://github.com': | |
| Nov 12, 2020 at 11:08 | history | answered | AdminBee | CC BY-SA 4.0 |