fish: Unexpected end of string, quotes are not balanced
exec "echo
^
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
error: cannot connect to 'whatever@example.com'
When using bash as a SHELL:
/nix/store/39k586qrghljxiyqvv72ni5fk89vshib-bash-interactive-4.4-p23/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/nix/store/39k586qrghljxiyqvv72ni5fk89vshib-bash-interactive-4.4-p23/bin/bash: -c: line 1: syntax error: unexpected end of file
...
Expected behavior
NIX_SSHOPTS should be parsed with honor to nested string literals:
With
NIX_SSHOPTS='-o ProxyCommand="ssh -W %h:%p ..."'
nix-copy-closure
tool will fail with error.I believe this is because tokenizer result added as arguments without additional transformations, making values with string literals
look like this
Steps To Reproduce
Run
On my system this fails:
When using bash as a
SHELL
:Expected behavior
NIX_SSHOPTS
should be parsed with honor to nested string literals:should become