File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11tty-about = Print the file name of the terminal connected to standard input.
22tty-usage = tty [OPTION]...
3+
4+ # Help messages
5+ tty-help-silent = print nothing, only return an exit status
6+
7+ # Output messages
8+ tty-not-a-tty = not a tty
Original file line number Diff line number Diff line change 1+ tty-about = Afficher le nom de fichier du terminal connecté à l'entrée standard.
2+ tty-usage = tty [OPTION]...
3+
4+ # Messages d'aide
5+ tty-help-silent = n'afficher rien, retourner seulement un code de sortie
6+
7+ # Messages de sortie
8+ tty-not-a-tty = n'est pas un tty
Original file line number Diff line number Diff line change 22//
33// For the full copyright and license information, please view the LICENSE
44// file that was distributed with this source code.
5- // *
6- // * Synced with http://lingrok.org/xref/coreutils/src/tty.c
75
86// spell-checker:ignore (ToDO) ttyname filedesc
97
@@ -41,7 +39,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
4139 Ok ( name) => writeln ! ( stdout, "{}" , name. display( ) ) ,
4240 Err ( _) => {
4341 set_exit_code ( 1 ) ;
44- writeln ! ( stdout, "not a tty" )
42+ writeln ! ( stdout, "{}" , get_message ( "tty-not-a- tty") )
4543 }
4644 } ;
4745
@@ -65,7 +63,7 @@ pub fn uu_app() -> Command {
6563 . long ( options:: SILENT )
6664 . visible_alias ( "quiet" )
6765 . short ( 's' )
68- . help ( "print nothing, only return an exit status" )
66+ . help ( get_message ( "tty-help-silent" ) )
6967 . action ( ArgAction :: SetTrue ) ,
7068 )
7169}
You can’t perform that action at this time.
0 commit comments