From b82d0fcbcc44eb259cf2209b04f7a41c1f324e27 Mon Sep 17 00:00:00 2001 From: David Adam Date: Wed, 26 Feb 2025 21:30:57 +0800 Subject: [PATCH] docs/source: document changes from #10774 --- doc_src/cmds/source.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc_src/cmds/source.rst b/doc_src/cmds/source.rst index d995c6a84..24f83b1bf 100644 --- a/doc_src/cmds/source.rst +++ b/doc_src/cmds/source.rst @@ -20,7 +20,7 @@ Description fish will search the working directory to resolve relative paths but will not search :envvar:`PATH` . -If no file is specified and stdin is not the terminal, or if the file name ``-`` is used, stdin will be read. +If no file is specified and a file or pipeline is connected to standard input, or if the file name ``-`` is used, ``source`` will read from standard input. If no file is specified and there is no redirected file or pipeline on standard input, an error will be printed. The exit status of ``source`` is the exit status of the last job to execute. If something goes wrong while opening or reading the file, ``source`` exits with a non-zero status.