Skip to content
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

execCommands with more than one command throws BAD_USE #35

Open
alexvorobiev opened this issue Dec 21, 2017 · 1 comment
Open

execCommands with more than one command throws BAD_USE #35

alexvorobiev opened this issue Dec 21, 2017 · 1 comment

Comments

@alexvorobiev
Copy link

I am getting BAD_USE if I try to pass more than one command to execCommands. For instance, this works (in ghci):

> withSSH2 "/home/alex/.ssh/known_hosts" "/home/alex/.ssh/id_rsa.pub" "/home/alex/.ssh/id_rsa" "" "alex" "myserver" 22 $ flip execCommands ["whoami"]
(0,["alex\n"])

and this doesn't:

> withSSH2 "/home/alex/.ssh/known_hosts" "/home/alex/.ssh/id_rsa.pub" "/home/alex/.ssh/id_rsa" "" "alex" "myserver" 22 $ flip execCommands ["whoami", "whoami"]
*** Exception: BAD_USE

Am I doing anything wrong?

@portnov
Copy link
Owner

portnov commented Dec 21, 2017

Interesting. Have no idea for now. Will try to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants