From ca82fc2f031291d1f473f8baa7eebddd24b89f54 Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 21 Apr 2006 01:01:24 +1000 Subject: [PATCH] Add missing documentation for the read builtin darcs-hash:20060420150124-ac50b-71a94cea3fedb0265af71718022e54e42567d69e.gz --- doc_src/read.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc_src/read.txt b/doc_src/read.txt index 4af02294f..d9c330671 100644 --- a/doc_src/read.txt +++ b/doc_src/read.txt @@ -8,10 +8,13 @@ The read builtin causes fish to read one line from standard input and store the result in one or more environment variables. +- -c CMD or --command=CMD specifies that the initial string in the interactive mode command buffer should be CMD. - -e or --export specifies that the variables will be exported to subshells. - -g or --global specifies that the variables will be made global. -- -pPROMPT_CMD or --prompt=PROMPT_CMD specifies that the output of the shell command PROMPT_CMD should be used as the prompt for the interactive mode prompt. The default prompt command is set_color green; echo read; set_color normal; echo "> ". -- -cCMD or --command=CMD specifies that the initial string in the interactive mode command buffer should be CMD. +- -p PROMPT_CMD or --prompt=PROMPT_CMD specifies that the output of the shell command PROMPT_CMD should be used as the prompt for the interactive mode prompt. The default prompt command is set_color green; echo read; set_color normal; echo "> ". +- -u or --unexport causes the specified environment not to be exported to child processes +- -U or --universal causes the specified environment variable to be made universal. If this option is supplied, the variable will be shared between all the current users fish instances on the current computer, and will be preserved across restarts of the shell. +- -x or --export causes the specified environment variable to be exported to child processes Read starts by reading a single line of input from stdin, the line is then tokenized using the IFS environment variable. Each variable