Fixed bug #42363: --pipepart and --fifo/--cat does not work.

This commit is contained in:
Ole Tange 2014-06-05 04:00:50 +02:00
parent 511623aa70
commit 2c3d409548

View file

@ -5521,12 +5521,12 @@ sub new {
if($sum == 0) { if($sum == 0) {
if($command eq "") { if($command eq "") {
$command = $Global::replace{'{}'}; $command = $Global::replace{'{}'};
} elsif($opt::pipe) { } elsif($opt::pipe and not $opt::fifo and not $opt::cat) {
# With --pipe you can have ::: or not # With --pipe you can have ::: or not
# if(@opt::a) { # if(@opt::a) {
# $command .=" ".$Global::replace{'{}'}; # $command .=" ".$Global::replace{'{}'};
# } # }
} elsif($opt::pipepart) { } elsif($opt::pipepart and not $opt::fifo and not $opt::cat) {
# With --pipe-part you can have nothing # With --pipe-part you can have nothing
} else { } else {
# Add {} to the command if there are no {...}'s # Add {} to the command if there are no {...}'s