diff options
Diffstat (limited to 'tools-reference/echo/text.xml')
-rw-r--r-- | tools-reference/echo/text.xml | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/tools-reference/echo/text.xml b/tools-reference/echo/text.xml index 9a84ab9..404d319 100644 --- a/tools-reference/echo/text.xml +++ b/tools-reference/echo/text.xml @@ -29,12 +29,12 @@ the same as the former, but they won't print the trailing newline <p> All usage of the form <c>echo ${somevar} | grep substring</c> just to -check if the contents of the <c>${somevar}</c> variable -contains <c>substring</c>, or more often, <c>echo ${somevar} | -command</c>, are deprecated and should be (and in most cases, can be) -used as less as possible: doing so involves for no reason an -additional shell session and a pipe. The "here strings" section -describes the preferred way of dealing with such cases. +check if the content of the <c>${somevar}</c> variable contains +<c>substring</c>, or more often, <c>echo ${somevar} | command</c>, +is deprecated and should be (and in most cases, can be) avoided: +doing so involves for no reason an additional shell session and a pipe. +The "here strings" section describes the preferred way +of dealing with such cases. </p> </body> </section> @@ -43,11 +43,10 @@ describes the preferred way of dealing with such cases. <title>Here strings</title> <body> <p> -As of >=bash-2.05b, the so-called "here strings" have been -introduced. Using "here strings", you can pass contents of an +Using "here strings", you can pass contents of an environment variable to the standard input of an application, using <c><<<word</c> redirection: what actually happens is -that <c>bash</c> expands word and passes the result to the standard +that <c>bash</c> expands <c>word</c> and passes the result to the standard input. </p> |