Files
test-quarkus/scripts
darroyo 6740e4e398 fix: make SSH config directive matching case-insensitive
resolve_ssh_alias() used a case statement that only matched
'HostName' (capital N), but OpenSSH treats config directives
as case-insensitive: 'Hostname', 'HostName', 'HOSTNAME' and
'hostname' are all equivalent. A config like

    Host retailpos-hites-qa
        Hostname 10.60.16.35
        User retailpos
        IdentityFile ~/.ssh/retailpos-key

produced 'has no HostName' even though one was present.

Enable 'shopt -s nocasematch' around the parsing loop so the
case branches match any casing. nocasematch was chosen over
${var,,} because the latter requires bash 4+, and macOS still
ships bash 3.2.57 as /bin/bash.

The 'Host' pattern itself remains case-sensitive, matching
ssh's own behavior.

Verified against: tabbed/spaced/mixed indentation, lowercase,
uppercase, mixed-casing directives, the user's exact config,
and the previous regression cases.
2026-09-09 11:26:35 -03:00
..