| 40 | }; |
| 41 | |
| 42 | void |
| 43 | usage (int status) |
| 44 | { |
| 45 | if (status != EXIT_SUCCESS) |
| 46 | emit_try_help (); |
| 47 | else |
| 48 | { |
| 49 | printf (_("\ |
| 50 | Usage: %s COMMAND [ARG]...\n\ |
| 51 | or: %s OPTION\n\ |
| 52 | "), |
| 53 | program_name, program_name); |
| 54 | |
| 55 | fputs (_("\ |
| 56 | Run COMMAND, ignoring hangup signals.\n\ |
| 57 | \n\ |
| 58 | "), stdout); |
| 59 | oputs (HELP_OPTION_DESCRIPTION); |
| 60 | oputs (VERSION_OPTION_DESCRIPTION); |
| 61 | printf (_("\n\ |
| 62 | If standard input is a terminal, redirect it from an unreadable file.\n\ |
| 63 | If standard output is a terminal, append output to 'nohup.out' if possible,\n\ |
| 64 | '$HOME/nohup.out' otherwise.\n\ |
| 65 | If standard error is a terminal, redirect it to standard output.\n\ |
| 66 | To 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>. */ |
no test coverage detected