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

ssh:with-command does not work is remote connection is using a c shell #15

Open
timotheosh opened this issue Aug 29, 2021 · 0 comments
Open

Comments

@timotheosh
Copy link

How to replicate

Connect to a remote host as a user who uses the c shell (or tcsh).

(flet ((read-lines (s)
  (loop for line = (read-line s nil nil)
        while line
        collect line)
      (ssh:with-connection (conn "julian" (ssh:agent "thawes"))
            (ssh:with-command (conn iostream "ls -al")
                      (read-lines iostream))))

Expected Behavior

Get a list of files.

What happens instead

The stream is empty (and still returns 0) but there is now a file on the remote host called 1 with the expected output (list of files).

I tried this with various shells and it seems to only happen if the remote shell is csh or a derivative of csh. I don't have this problem with any bourne compatible shells. /bin/sh bash and ksh all work as expected.

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

1 participant