diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2013-10-21 15:32:12 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2013-10-21 15:32:12 +0100 |
commit | aa031dd019a9b1d561aafac0ddb04ad5b3ae25ee (patch) | |
tree | 2c5cf9109437ca852274589146e8be2e462247a9 /dgit | |
parent | 13134e3159841328c681a416e6dc220e1f704e9f (diff) |
fix printcmd and shellquote
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 $!; } |