From ea4d37468a5a2e9bdddfcffe65a8216fc85d8b8a Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Wed, 15 May 2013 10:49:04 -0700 Subject: [PATCH] [commit-patch] Quote things better in --verbose mode. --- commit-patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commit-patch b/commit-patch index b2a6ab5..fa5a37a 100755 --- a/commit-patch +++ b/commit-patch @@ -16,7 +16,7 @@ my ($dry_run, $verbose); sub run { if ($verbose || $dry_run) { for (@_) { - print join ' ', @$_ if ref $_ eq 'ARRAY'; + print join ' ', map { $_ =~ / / ? "\"$_\"" : $_ } @$_ if ref $_ eq 'ARRAY'; print " $_ " if ref $_ eq ''; print '[',ref $_,'] ' if ref $_ ne 'ARRAY' && ref $_ ne ''; } -- 2.51.2