do not add a default command-line in in-place editing mode
2005-04-11 Paolo Bonzini <bonzini@gnu.org> * sed/execute.c (process_files): Do not add a default command-line in in-place editing mode. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-45
This commit is contained in:
1 parent
479184e226
commit
f7eed06223
2 files changed
+10
-1
No files matched your search
@@ -1,3 +1,8 @@
|
||||
2005-04-04 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* sed/execute.c (process_files): Do not add a default
|
||||
command-line in in-place editing mode.
|
||||
|
||||
2005-02-10 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* testsuite/appquit.good, testsuite/appquit.inp,
|
||||
|
||||
+5
-1
@@ -1709,10 +1709,14 @@ process_files(the_program, argv)
|
||||
#ifdef EXPERIMENTAL_DASH_N_OPTIMIZATION
|
||||
branches = count_branches(the_program);
|
||||
#endif /*EXPERIMENTAL_DASH_N_OPTIMIZATION*/
|
||||
input.file_list = stdin_argv;
|
||||
input.reset_at_next_file = true;
|
||||
if (argv && *argv)
|
||||
input.file_list = argv;
|
||||
else if (in_place_extension)
|
||||
panic(_("no input files"));
|
||||
else
|
||||
input.file_list = stdin_argv;
|
||||
|
||||
input.bad_count = 0;
|
||||
input.line_number = 0;
|
||||
input.read_fn = read_always_fail;
|
||||
|
||||
Reference in new issue
Block a user