diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2005-02-10 09:51:12 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2008-01-09 16:11:49 +0100 |
commit | 479184e22636ff8067218fb244ba245111996d5d (patch) | |
tree | 92800ba18ad88623968a42f11582b6d821583b45 /sed | |
parent | 20a67b75e7b8c2ba418edc9eac092d332dd39741 (diff) | |
download | sed-479184e22636ff8067218fb244ba245111996d5d.tar.gz |
fix a/r/R commands when q is encountered
2005-02-10 Paolo Bonzini <bonzini@gnu.org>
* testsuite/appquit.good, testsuite/appquit.inp,
testsuite/appquit.sed: New testcase.
* testsuite/readin.sed: Quit after the last r command.
* testsuite/readin.good: Adjust.
* sed/execute.c (execute_program): Dump the results of the
a/r/R commands just before quitting.
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-44
Diffstat (limited to 'sed')
-rw-r--r-- | sed/execute.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sed/execute.c b/sed/execute.c index fb3f509..e05dbb9 100644 --- a/sed/execute.c +++ b/sed/execute.c @@ -1466,6 +1466,7 @@ execute_program(vec, input) case 'q': if (!no_default_output) output_line(line.active, line.length, line.chomped, &output_file); + dump_append_queue(); case 'Q': return cur_cmd->x.int_arg == -1 ? 0 : cur_cmd->x.int_arg; |