Improved -s and support cvs's -e30.8 version idiom.
authorWayne Davison <wayned@samba.org>
Mon, 17 Sep 2007 06:02:09 +0000 (06:02 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 17 Sep 2007 06:02:09 +0000 (06:02 +0000)
support/cull_options
support/rrsync

index ab16238..c85a036 100755 (executable)
@@ -33,8 +33,6 @@ while (<IN>) {
 }
 close IN;
 
-$short_no_arg{'s'} = 1;
-
 my $short_no_arg = join('', sort keys %short_no_arg);
 my $short_with_num = join('', sort keys %short_with_num);
 
index 6a2e5b0..e1ae6ec 100644 (file)
@@ -50,7 +50,7 @@ die "$0 -ro: sending to read-only server not allowed\n" if $ro && !$am_sender;
 # To disable a short-named option, add its letter to this string:
 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;