Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bin/chmod
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ while (@ARGV && $ARGV [0] =~ /^-/) {
my $opt = reverse shift;
chop $opt;
last if ($opt eq '-');
unless ($opt =~ /^[RHLP]+$/) {
warn "$Program: invalid option -- $opt\n";
usage();
}
local $_;
while (length ($_ = chop $opt)) {
unless (m/\A[RHLP]\Z/) {
warn "$Program: invalid option -- '$_'\n";
usage();
}
/R/ && do {$options {R} = 1; next};
usage() unless $options{'R'};
/H/ && do {$options {L} = $options {P} = 0; $options {H} = 1; next};
Expand Down
Loading