From 13161881906ef646bf3a40d3ed343cfbdd50657a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 2 May 2015 20:42:45 +0100 Subject: [PATCH] Diagnostics: Make shellquote() print empty arguments as '' --- Debian/Dgit.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index e2a503d7..f33b173c 100644 --- a/Debian/Dgit.pm +++ b/Debian/Dgit.pm @@ -107,7 +107,7 @@ sub shellquote { local $_; foreach my $a (@_) { $_ = $a; - if (m{[^-=_./0-9a-z]}i) { + if (!length || m{[^-=_./0-9a-z]}i) { s{['\\]}{'\\$&'}g; push @out, "'$_'"; } else { -- 2.30.2