We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd40547 commit 4c5b665Copy full SHA for 4c5b665
1 file changed
src/uu/tty/src/tty.rs
@@ -19,7 +19,10 @@ mod options {
19
20
#[uucore::main(no_signals)]
21
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
22
- let matches = uucore::clap_localization::handle_clap_result_with_exit_code(uu_app(), args, 2)?;
+ // tty exits 2 on argument parse errors but 3 on write errors (consistent with its
23
+ // normal write-error behavior on line output failures).
24
+ let matches =
25
+ uucore::clap_localization::handle_clap_result_with_exit_codes(uu_app(), args, 2, 3)?;
26
27
// Disable SIGPIPE so we can handle broken pipe errors gracefully
28
// and exit with code 3 instead of being killed by the signal.
0 commit comments