fish-shell/share
Fabian Homborg 3bc392a6b3 functions/__fish_print_hostnames: Check getent's status
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 8f7a47547e.

[ci skip]
2019-06-25 08:40:31 +02:00
..
completions Add FFmpeg completions (#5922) 2019-06-23 16:40:26 +02:00
functions functions/__fish_print_hostnames: Check getent's status 2019-06-25 08:40:31 +02:00
groff workaround broken groff man page config 2016-10-19 13:43:04 -07:00
tools Reformat all files 2019-05-05 12:09:25 +02:00
__fish_build_paths.fish.in Rename "snippets" to "conf" internally, and document them as snippets 2016-04-06 09:33:09 +08:00
config.fish __fish_macos_set_env: don't create empty PATH components 2019-04-11 02:52:18 -07:00
lynx.lss Install custom LSS script to /usr/local/share/fish on make install 2017-09-26 14:31:11 -05:00