From 07944cfd20de20b6863b2c0a9b73dc4be693859f Mon Sep 17 00:00:00 2001 From: Alan Thompson Date: Fri, 18 Apr 2014 17:16:37 -0700 Subject: Change terminology in docs from 'environment variables' -> 'shell variables' --- doc_src/read.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc_src/read.txt') diff --git a/doc_src/read.txt b/doc_src/read.txt index 1e8aef37..bb13f991 100644 --- a/doc_src/read.txt +++ b/doc_src/read.txt @@ -6,7 +6,7 @@ \subsection read-description Description read reads one line from standard -input and stores the result in one or more environment variables. +input and stores the result in one or more shell variables. The following options are available: @@ -17,17 +17,17 @@ The following options are available: - -p PROMPT_CMD or --prompt=PROMPT_CMD uses the output of the shell command \c PROMPT_CMD as the prompt for the interactive mode. The default prompt command is set_color green; echo read; set_color normal; echo "> ". - -s or --shell enables syntax highlighting, tab completions and command termination suitable for entering shellscript code in the interactive mode. - -u or --unexport prevents the variables from being exported to child processes (default behaviour). -- -U or --universal causes the specified environment variable to be made universal. +- -U or --universal causes the specified shell variable to be made universal. - -x or --export exports the variables to child processes. \c read reads a single line of input from stdin, breaks it into tokens -based on the IFS environment variable, and then assigns one +based on the IFS shell variable, and then assigns one token to each variable specified in VARIABLES. If there are more tokens than variables, the complete remainder is assigned to the last variable. \subsection read-example Example -The following code stores the value 'hello' in the environment variable +The following code stores the value 'hello' in the shell variable $foo. echo hello|read foo -- cgit v1.2.3