summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2013-10-21 15:32:12 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2013-10-21 15:32:12 +0100
commitaa031dd019a9b1d561aafac0ddb04ad5b3ae25ee (patch)
tree2c5cf9109437ca852274589146e8be2e462247a9 /dgit
parent13134e3159841328c681a416e6dc220e1f704e9f (diff)
fix printcmd and shellquote
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit4
1 files changed, 2 insertions, 2 deletions
diff --git a/dgit b/dgit
index 0c024c9..2f4ce48 100755
--- a/dgit
+++ b/dgit
@@ -289,13 +289,13 @@ sub shellquote {
push @out, $_;
}
}
- return join '', @out;
+ return join ' ', @out;
}
sub printcmd {
my $fh = shift @_;
my $intro = shift @_;
- print $fh $intro or die $!;
+ print $fh $intro," " or die $!;
print $fh shellquote @_ or die $!;
print $fh "\n" or die $!;
}