~xnox/dgit/master

« back to all changes in this revision

Viewing changes to dgit

  • Committer: Ian Jackson
  • Date: 2013-10-25 15:55:05 UTC
  • Revision ID: git-v1:08b5daae7971c7ab730471d58d665ef087573791
Fix the "shellquote" command to work properly.  The bugs in it ought not to have caused any real trouble in previous versions of dgit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
312
312
    local $_;
313
313
    foreach my $a (@_) {
314
314
        $_ = $a;
315
 
        if (s{['\\]}{\\$&}g || m{\s} || m{[^-_./0-9a-z]}i) {
 
315
        if (m{[^-=_./0-9a-z]}i) {
 
316
            s{['\\]}{'\\$&'}g;
316
317
            push @out, "'$_'";
317
318
        } else {
318
319
            push @out, $_;