You are not logged in.

#1 2014-11-24 09:46:50

gabor_bernat
Member
From: Budapest
Registered: 2014-10-21
Posts: 7
Website

[SOLVED] grep: warning: GREP_OPTIONS is deprecated

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

#2 2014-11-24 10:28:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] grep: warning: GREP_OPTIONS is deprecated

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

#3 2014-11-24 11:02:08

gabor_bernat
Member
From: Budapest
Registered: 2014-10-21
Posts: 7
Website

Re: [SOLVED] grep: warning: GREP_OPTIONS is deprecated

Nope, it's not there in my zshrc files. smile

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

#4 2014-11-24 12:46:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED] grep: warning: GREP_OPTIONS is deprecated

Not GNU/Linux Discussion.  Moved to N.C.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2014-11-26 13:53:13

Pierrre
Member
Registered: 2014-10-27
Posts: 10

Re: [SOLVED] grep: warning: GREP_OPTIONS is deprecated

Offline

#7 2014-11-27 23:11:27

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,928
Website

Re: [SOLVED] grep: warning: GREP_OPTIONS is deprecated

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

#8 2014-11-28 06:08:54

mariuspot
Member
Registered: 2012-12-19
Posts: 2

Re: [SOLVED] grep: warning: GREP_OPTIONS is deprecated

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

#9 2014-11-30 18:05:11

3xOSC
Member
Registered: 2013-03-18
Posts: 107

Re: [SOLVED] grep: warning: GREP_OPTIONS is deprecated

thank mariuspot.
that message i kept getting was driving me up the fucking wall

Offline

#10 2014-11-30 19:44:34

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] grep: warning: GREP_OPTIONS is deprecated

An empty post with a gratuitous profanity is completely unnecessary: https://wiki.archlinux.org/index.php/Fo … mpty_Posts


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB