didn't cover --version output.
(main): Arrange to call close_stdout via atexit, instead.
"),
program_name, program_name);
puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
- close_stdout ();
}
exit (status);
}
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+ atexit (close_stdout);
+
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
AUTHORS, usage);
")
, program_name, program_name);
puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
- close_stdout ();
exit (status);
}
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+ atexit (close_stdout);
+
/* Recognize --help or --version only if it's the only command-line
argument and if POSIXLY_CORRECT is not set. */
if (argc == 2 && getenv ("POSIXLY_CORRECT") == NULL)
--version output version information and exit\n"));
puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
}
- close_stdout ();
exit (status);
}
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+ atexit (close_stdout);
+
/* Don't recognize --help or --version if POSIXLY_CORRECT is set. */
if (getenv ("POSIXLY_CORRECT") == NULL)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,