mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 14:20:12 +08:00

This previously effectively checked `string split ' '`s return status, which was false if it didn't split anything. And while that should be true if getent fails (because it should produce no output), it's also true if it doesn't print a line with multiple aliases. Which should be fairly typical. Instead we use our new-found $pipestatus to check what getent returns, in the assumption that it'll fail if it doesn't support hosts. Follow up to 8f7a47547e0f8e3055f51dddd59e1cce7bd49618. [ci skip]