Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

native-ssh Option Returns Windows-Style Line Endings #4806

Open
git-blame opened this issue May 12, 2020 · 0 comments
Open

native-ssh Option Returns Windows-Style Line Endings #4806

git-blame opened this issue May 12, 2020 · 0 comments

Comments

@git-blame
Copy link

If I use the --native-ssh option, output from the ssh command are appended with \r\n. For the bash shell, this makes using the output such as assigning to variables a bit of a pain. It would be nice for it to either use unix line ending ('\n') or an option to enable unix line ending.

docker-machine ssh demo "echo -e 'test\ntest'" | hexdump -C
00000000  74 65 73 74 0a 74 65 73  74 0a                    |test.test.|
0000000a
docker-machine --native-ssh ssh demo "echo -e 'test\ntest'" | hexdump -C
00000000  74 65 73 74 0d 0a 74 65  73 74 0d 0a              |test..test..|
0000000c
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant