Skip to content

Commit

Permalink
previous commit incorrectly allowed "-" followed by a filename
Browse files Browse the repository at this point in the history
  • Loading branch information
mknos authored Jan 27, 2024
1 parent e86166c commit cea304d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ed
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ if ($opt{'v'}) {
$EXTENDED_MESSAGES = 1;
}

shift if (@ARGV && $ARGV[0] eq '-');
$args[0] = shift;
$args[0] = undef if (defined($args[0]) && $args[0] eq '-');
Usage() if @ARGV;
$SupressCounts = 1 if ($opt{'s'} || !defined($args[0]));

Expand Down

0 comments on commit cea304d

Please sign in to comment.