MCPcopy Create free account
hub / github.com/coreutils/coreutils / usage

Function usage

src/nohup.c:42–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 };
41
42void
43usage (int status)
44{
45 if (status != EXIT_SUCCESS)
46 emit_try_help ();
47 else
48 {
49 printf (_("\
50Usage: %s COMMAND [ARG]...\n\
51 or: %s OPTION\n\
52"),
53 program_name, program_name);
54
55 fputs (_("\
56Run COMMAND, ignoring hangup signals.\n\
57\n\
58"), stdout);
59 oputs (HELP_OPTION_DESCRIPTION);
60 oputs (VERSION_OPTION_DESCRIPTION);
61 printf (_("\n\
62If standard input is a terminal, redirect it from an unreadable file.\n\
63If standard output is a terminal, append output to 'nohup.out' if possible,\n\
64'$HOME/nohup.out' otherwise.\n\
65If standard error is a terminal, redirect it to standard output.\n\
66To save output to FILE, use '%s COMMAND > FILE'.\n"),
67 program_name);
68 printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
69 emit_exec_status (PROGRAM_NAME);
70 emit_ancillary_info (PROGRAM_NAME);
71 }
72 exit (status);
73}
74
75/* GCC 13 gets confused by the dup2 calls
76 <https://gcc.gnu.org/PR109839>. */

Callers 1

mainFunction · 0.70

Calls 2

emit_exec_statusFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected