Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug Zshenv



> On 06 January 2021 at 11:20 Cavallucci Laura <laura.cllucci@xxxxxxxxx> wrote:
> I just install Zsh a few days ago and this appears :
> "/etc/zsh/zshenv:19: command not found: es
> grep: Avertissement : GREP_OPTIONS doit être abandonnée ; veuillez utiliser
> un alias ou un script"

This should really be on the zsh-users list; it's not an internal zsh issue
but a usage issue, i.e. to do with how code that runs under zsh is written.
 
> *Here's my Zshenv :*
>...
> if [[ -z "$PATH" || "$PATH" == "/bin:/usr/bin" ]]
> then
> export PATH="/usr/local/bin:/usr/bin:/bin:/usr/games"
> fi
> es crées
> umask 022
>...

(I've stripped this down, leaving a little bit of context before and after.)
That line running the command "es" to me looks very strange, like it shouldn't
be there; possibly it's a bit of a comment that hasn't been edited out.

There *might* be a command "es" on your system but the fact the argument
is an unquoted, accented word suggests the line is bogus.  I'd suggest
simply commenting it out or removing it (as superuser).

I don't know what grep's objection to GREP_OPTIONS is (it's nothing to
do with zsh), but you can remove that error by commenting out the line

> export GREP_OPTIONS='--color=auto' 

later on.  The suggestion you're getting from grep is basically equivalent
to replacing that line with

alias grep='grep --color=auto'

so you could do that instead.

pws




Messages sorted by: Reverse Date, Date, Thread, Author