diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2013-10-25 16:55:05 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2013-10-25 16:55:05 +0100 |
commit | 08b5daae7971c7ab730471d58d665ef087573791 (patch) | |
tree | 19bce8cb3c16769f838d612eb5aeca49da300e10 /dgit | |
parent | 3223d3f138645887586ad0cb77f28db3b13a0709 (diff) |
Fix the "shellquote" command to work properly. The bugs in it ought not to have caused any real trouble in previous versions of dgit.
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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, $_; |