From d4fe110f23b8b400db603436aa4693245941af5c Mon Sep 17 00:00:00 2001 From: Aurelio Jargas Date: Sat, 5 Sep 2020 07:24:39 +0200 Subject: [PATCH] docs/isatty: Mention default value for FILE DESCRIPTOR As seen in share/functions/isatty.fish (note the empty string): switch "$argv" case stdin '' set fd 0 --- doc_src/cmds/isatty.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc_src/cmds/isatty.rst b/doc_src/cmds/isatty.rst index 7edc65adc..5ad6b2267 100644 --- a/doc_src/cmds/isatty.rst +++ b/doc_src/cmds/isatty.rst @@ -15,7 +15,7 @@ Description ``isatty`` tests if a file descriptor is a terminal (as opposed to a file). The name is derived from the system call of the same name, which for historical reasons refers to a teletypewriter (TTY). -``FILE DESCRIPTOR`` may be either the number of a file descriptor, or one of the strings ``stdin``, ``stdout``, or ``stderr``. +``FILE DESCRIPTOR`` may be either the number of a file descriptor, or one of the strings ``stdin``, ``stdout``, or ``stderr``. If not specified, zero is assumed. If the specified file descriptor is a terminal device, the exit status of the command is zero. Otherwise, the exit status is non-zero. No messages are printed to standard error.