X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/d2745243172544475e1bb337e798229411a5f52f..c5d77e9659bb40db09376beb31ba9d23396ae601:/support/rrsync diff --git a/support/rrsync b/support/rrsync index da6e5536..e1ae6ec8 100644 --- a/support/rrsync +++ b/support/rrsync @@ -48,9 +48,9 @@ die "$0 -ro: sending to read-only server not allowed\n" if $ro && !$am_sender; # and only in the option format that the stock rsync produces. # To disable a short-named option, add its letter to this string: -our $short_disabled = ''; +our $short_disabled = 's'; -our $short_no_arg = 'ACDEHIKLORSWXbcdgklmnoprtuvxz'; # DO NOT REMOVE ANY +our $short_no_arg = 'ACDEHIKLORSWXbcdgklmnoprstuvxz'; # DO NOT REMOVE ANY our $short_with_num = 'B'; # DO NOT REMOVE ANY # To disable a long-named option, change its value to a -1. The values mean: @@ -139,7 +139,7 @@ while ($command =~ /((?:[^\s\\]+|\\.[^\s\\]*)+)/g) { if ($_ eq '.') { $in_options = 0; } else { - next if /^-$short_no_arg+$/o || /^-$short_with_num\d+$/o; + next if /^-$short_no_arg+(e\d+\.\d+)?$/o || /^-$short_with_num\d+$/o; my($opt,$arg) = /^--([^=]+)(?:=(.*))?$/; my $disabled;