2007-09-21 20:52:12 +00:00
|
|
|
|
|
|
|
function __fish_print_users --description "Print a list of local users"
|
2012-11-22 09:07:19 +00:00
|
|
|
if test -x /usr/bin/getent
|
|
|
|
getent passwd | cut -d : -f 1
|
|
|
|
else
|
|
|
|
sgrep -ve '^#' /etc/passwd | cut -d : -f 1
|
|
|
|
end
|
2007-09-21 20:52:12 +00:00
|
|
|
end
|
|
|
|
|