&& !compat(5)) {
# Add fragments to top so they run in reverse order when removing.
complex_doit("echo \"# Automatically added by ".basename($0)."\"> $outfile.new");
- complex_doit("sed '$sed' $infile >> $outfile.new");
+ complex_doit("sed \"$sed\" $infile >> $outfile.new");
complex_doit("echo '# End automatically added section' >> $outfile.new");
complex_doit("cat $outfile >> $outfile.new");
complex_doit("mv $outfile.new $outfile");
}
else {
complex_doit("echo \"# Automatically added by ".basename($0)."\">> $outfile");
- complex_doit("sed '$sed' $infile >> $outfile");
+ complex_doit("sed \"$sed\" $infile >> $outfile");
complex_doit("echo '# End automatically added section' >> $outfile");
}
}
my $file=shift;
my $globdir=shift;
- # executable confi files are a v9 thing.
+ # executable config files are a v9 thing.
my $x=! compat(8) && -x $file;
if ($x) {
require Cwd;