You are not logged in.
So the today update brought the following warning into every new opened shell:
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
Any ideas how to remove it.
I'va added
unset GREP_OPTIONS
into my zshrc file however this does not solve it (although the earlier --color=always content of my shell variable has changed to empty)
Thanks,
Last edited by gabor_bernat (2014-11-24 11:06:29)
"In a moment, everything can change, Feel the wind on your shoulder, For a minute, all the world can wait, Let go of your yesterday."
Offline
You probably have
export GREP_OPTIONS='--color=auto'
in ~/.zshrc or some other file.
Please change the thread title to something more descriptive.
Last edited by karol (2014-11-24 10:29:08)
Offline
Nope, it's not there in my zshrc files.
I've used zprezto, it was inside my
vim modules/environment/init.zsh
Last edited by gabor_bernat (2014-11-24 11:05:57)
"In a moment, everything can change, Feel the wind on your shoulder, For a minute, all the world can wait, Let go of your yesterday."
Offline
Not GNU/Linux Discussion. Moved to N.C.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Offline
Offline
For the record: fish does the same in /usr/share/fish/functions/grep.fish
As a workaround, define your own grep.fish function.
https://github.com/fish-shell/fish-shell/issues/1832
UPDATE: fish-shell-git already contains the fix. BTW my workaround was wrong, but anyway...
Last edited by SanskritFritz (2014-11-28 13:50:16)
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
My quick fix.
Just add
alias grep="/usr/bin/grep $GREP_OPTIONS"
unset GREP_OPTIONS
to the end of you shell rc file
Last edited by mariuspot (2014-11-28 06:09:30)
Offline
thank mariuspot.
that message i kept getting was driving me up the fucking wall
Offline
An empty post with a gratuitous profanity is completely unnecessary: https://wiki.archlinux.org/index.php/Fo … mpty_Posts
Offline