1 /* logname - print login name of current user */
5 #if defined (HAVE_UNISTD_H)
19 logname_builtin (list)
24 if (no_options (list))
30 builtin_error ("cannot find username: %s", strerror (errno));
31 return (EXECUTION_FAILURE);
34 return (EXECUTION_SUCCESS);
37 char *logname_doc[] = {
38 "write the current user's login name to the standard output",
39 "and exit. logname ignores the LOGNAME and USER variables.",
40 "logname ignores any non-option arguments.",
44 struct builtin logname_struct = {