diff options
author | Wayne Davison <wayned@samba.org> | 2007-09-17 06:02:09 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2007-09-17 06:02:09 +0000 |
commit | 5d3e5f641d11b48426470c1f5e92cae31f1cea6f (patch) | |
tree | 24bc2ea62f22c92ff104385196cc0e9ebeb69a87 /support | |
parent | a0f29ed824ff6fdae0d49826bf6bd810e3bca88a (diff) | |
download | rsync-5d3e5f641d11b48426470c1f5e92cae31f1cea6f.tar.gz rsync-5d3e5f641d11b48426470c1f5e92cae31f1cea6f.tar.bz2 rsync-5d3e5f641d11b48426470c1f5e92cae31f1cea6f.zip |
Improved -s and support cvs's -e30.8 version idiom.
Diffstat (limited to 'support')
-rwxr-xr-x | support/cull_options | 2 | ||||
-rw-r--r-- | support/rrsync | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/support/cull_options b/support/cull_options index ab16238c..c85a0363 100755 --- a/support/cull_options +++ b/support/cull_options @@ -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); diff --git a/support/rrsync b/support/rrsync index 6a2e5b0b..e1ae6ec8 100644 --- a/support/rrsync +++ b/support/rrsync @@ -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; |