ふり返る暇なんて無いね

日々のメモ書きをつらつらと

$GREP_OPTIONSはdeprecatedらしい

Ubuntu16.04でgrep実行したらこんなwarningが出た

grep: warning: GREP_OPTIONS is deprecated; please use an alias or script

どうやら、将来的に$GREP_OPTIONSは廃止されるらしい。

This variable specifies default options to be placed in front of any explicit options.  As this causes problems when writing portable scripts, this feature will be removed in a future release of grep, and  grep  warns  if it is used.  Please use an alias or script instead.

ちなみにgrepのバージョンは以下の通り。

% grep --version
grep (GNU grep) 2.25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script