diff --git a/ChangeLog b/ChangeLog index 6499abc..44714a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-04-04 Paolo Bonzini + + * sed/execute.c (process_files): Do not add a default + command-line in in-place editing mode. + 2005-02-10 Paolo Bonzini * testsuite/appquit.good, testsuite/appquit.inp, diff --git a/sed/execute.c b/sed/execute.c index e05dbb9..6ccf944 100644 --- a/sed/execute.c +++ b/sed/execute.c @@ -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;