mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
use PATH to find getent in __fish_complete_groups (#3383)
This commit is contained in:
parent
05b52eaa0b
commit
0a6dc2addb
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue