mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
802 B
802 B
| synopsis | issues | prs | ||
|---|---|---|---|---|
| Improved `NIX_SSHOPTS` parsing for better SSH option handling |
|
|
The parsing of the NIX_SSHOPTS environment variable has been improved to handle spaces and quotes correctly.
Previously, incorrectly split SSH options could cause failures in CLIs like nix-copy-closure,
especially when using complex ssh invocations such as -o ProxyCommand="ssh -W %h:%p ...".
This change introduces a shellSplitString function to ensure
that NIX_SSHOPTS is parsed in a manner consistent with shell
behavior, addressing common parsing errors.
For example, the following now works as expected:
export NIX_SSHOPTS='-o ProxyCommand="ssh -W %h:%p ..."'
This update improves the reliability of SSH-related operations using NIX_SSHOPTS across Nix CLIs.