Skip to content

Commit

Permalink
revert pipe argument list conversion to scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
mknos authored Jan 6, 2025
1 parent bba92da commit 3d83aeb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/patch
Original file line number Diff line number Diff line change
Expand Up @@ -912,8 +912,7 @@ sub apply {

# Pipe to ed.
eval {
my $cmd = 'ed -s ' . $self->{'i_file'};
open ED, '|-', $cmd or die "Couldn't fork ed: $!";
open ED, '|-', 'ed', '-s', $self->{'i_file'} or die "Couldn't fork ed: $!";
print ED map @$_, @cmd or die "Couldn't print ed: $!";
print ED "wq $self->{o_file}\n" or die "Couldn't print ed: $!";
close ED or die "Couldn't close ed: $?";
Expand Down

0 comments on commit 3d83aeb

Please sign in to comment.