From 08b5daae7971c7ab730471d58d665ef087573791 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 25 Oct 2013 16:55:05 +0100 Subject: Fix the "shellquote" command to work properly. The bugs in it ought not to have caused any real trouble in previous versions of dgit. --- dgit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dgit') diff --git a/dgit b/dgit index 254e3fb..d74dd85 100755 --- a/dgit +++ b/dgit @@ -312,7 +312,8 @@ sub shellquote { local $_; foreach my $a (@_) { $_ = $a; - if (s{['\\]}{\\$&}g || m{\s} || m{[^-_./0-9a-z]}i) { + if (m{[^-=_./0-9a-z]}i) { + s{['\\]}{'\\$&'}g; push @out, "'$_'"; } else { push @out, $_; -- cgit v1.2.1