chiark / gitweb /
Dgit.pm: printcmd: Print in one go
[dgit.git] / Debian / Dgit.pm
index 9c1a08e7e28641661833e0bf1d1dd080c72664ac..d99e52011a3638ad287a393e950f4b3b47a1f785 100644 (file)
@@ -219,9 +219,7 @@ sub shellquote {
 sub printcmd {
     my $fh = shift @_;
     my $intro = shift @_;
-    print $fh $intro," " or confess "$!";
-    print $fh shellquote @_ or confess "$!";
-    print $fh "\n" or confess "$!";
+    print $fh $intro." ".(join '', shellquote @_)."\n" or confess "$!";
 }
 
 sub debugcmd {