diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2012-07-25 12:32:44 +0200 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2012-07-25 12:33:07 +0200 |
commit | 4c0c33f6bb443fac4a244cba8935a2515d7453c6 (patch) | |
tree | e066da849a9f637bd2cb999826e6c699e027c0de | |
parent | 3b8b5eb3cdec7e39950f87b4aedc79efcd6bf249 (diff) | |
download | sed-ssed.tar.gz |
document difference between "e" and "r" commandsssed
2012-07-25 Paolo Bonzini <bonzini@gnu.org>
* doc/sed-in.texi: Document difference between "e" and "r"
commands.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | doc/sed-in.texi | 10 |
2 files changed, 12 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2012-07-25 Paolo Bonzini <bonzini@gnu.org> + + * doc/sed-in.texi: Document difference between "e" and "r" + commands. + 2012-04-29 Jim Hill <gjthill@gmail.com> * Makefile.am (noinst_DATA, dist-hook): build failed after git diff --git a/doc/sed-in.texi b/doc/sed-in.texi index 4f6f864..2b4d83a 100644 --- a/doc/sed-in.texi +++ b/doc/sed-in.texi @@ -1441,13 +1441,17 @@ replaces the pattern space with the output; a trailing newline is suppressed. If a parameter is specified, instead, the @code{e} command -interprets it as a command and sends its output to the output stream -(like @code{r} does). The command can run across multiple -lines, all but the last ending with a back-slash. +interprets it as a command and sends its output to the output stream. +The command can run across multiple lines, all but the last ending with +a back-slash. In both cases, the results are undefined if the command to be executed contains a @sc{nul} character. +Note that, unlike the @code{r} command, the output of the command will +be printed immediately; the @code{r} command instead delays the output +to the end of the current cycle. + @item F @findex F (File name) command @cindex Printing file name |