From 4c0c33f6bb443fac4a244cba8935a2515d7453c6 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 25 Jul 2012 12:32:44 +0200 Subject: document difference between "e" and "r" commands 2012-07-25 Paolo Bonzini * doc/sed-in.texi: Document difference between "e" and "r" commands. --- ChangeLog | 5 +++++ doc/sed-in.texi | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4b282f0..5819543 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-07-25 Paolo Bonzini + + * doc/sed-in.texi: Document difference between "e" and "r" + commands. + 2012-04-29 Jim Hill * 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 -- cgit v1.2.1