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
10 changes: 1 addition & 9 deletions bin/grep
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ Options:
-s suppress errors for failed file and dir opens
-T trace files as opened
-Z force grep to behave as zgrep

May use GREP_OPTIONS environment variable to set default options.
EOF
}

Expand Down Expand Up @@ -212,11 +210,6 @@ sub parse_args {
}
};

if ( defined( $_ = $ENV{'GREP_OPTIONS'} ) ) {
s/^([^\-])/-$1/; # add leading - if missing
unshift @ARGV, $_;
}

# multiple -e/-f options
my $opt_f = 0;
my @tmparg;
Expand Down Expand Up @@ -728,8 +721,7 @@ searching for the pattern.

=head1 ENVIRONMENT

The GREP_OPTIONS environment variable is taken as the default set of
options to grep, placed at the front of any explicit options.
The TERM variable is used for output formatting in the -g and -u options.

=head1 EXAMPLES

Expand Down
Loading