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
最近のgrepで$ GREP_OPTIONS 設定してるとwarning出すようになったの?
— masasuzu 🍶🐫 (@masasuz) December 6, 2017
ふーん。将来的には廃止になるみたいだね
— masasuzu 🍶🐫 (@masasuz) December 6, 2017