(usage): Call close_stdout_status from here as well as from main.
/* tty -- print the path of the terminal connected to standard input
- Copyright (C) 1990-1999 Free Software Foundation, Inc.
+ Copyright (C) 1990-2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
"));
puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
}
+ close_stdout_status (3);
exit (status);
}
}
if (optind != argc)
- usage (2);
+ error (0, 0, _("ignoring all arguments"));
tty = ttyname (0);
if (!silent)