mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 19:32:45 +08:00
use PATH to find getent in __fish_complete_groups (#3383)
This commit is contained in:
parent
05b52eaa0b
commit
0a6dc2addb
|
@ -1,6 +1,6 @@
|
|||
|
||||
function __fish_complete_groups --description "Print a list of local groups, with group members as the description"
|
||||
if test -x /usr/bin/getent
|
||||
if command -s getent >/dev/null
|
||||
getent group | cut -d ':' -f 1,4 | sed 's/:/\t/'
|
||||
else
|
||||
cut -d ':' -f 1,4 /etc/group | sed 's/:/\t/'
|
||||
|
|
Loading…
Reference in New Issue
Block a user