X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/fc4a695cddfc1b7705f1e1e3ea13108777b3a76a..1fb6a4018d8b5dd76252be3aa4792d2a62d07a97:/support/rrsync diff --git a/support/rrsync b/support/rrsync index 65999750..0369bc65 100644 --- a/support/rrsync +++ b/support/rrsync @@ -143,7 +143,8 @@ while ($command =~ /((?:[^\s\\]+|\\.[^\s\\]*)+)/g) { if ($_ eq '.') { $in_options = 0; } else { - next if /^-$short_no_arg+(e\d*\.\w*)?$/o || /^-$short_with_num\d+$/o; + die "$0: invalid option: '-'\n" if $_ eq '-'; + next if /^-$short_no_arg*(e\d*\.\w*)?$/o || /^-$short_with_num\d+$/o; my($opt,$arg) = /^--([^=]+)(?:=(.*))?$/; my $disabled;