[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Stretch Kernel-update schlägt fehl



Hi!

Am 2018-03-05 12:42, schrieb Christian Knoke:

export GREP_OPTIONS='--color=auto'

ist deprecated. Jedenfalls laut meinem Stretch.
Aus man grep: "The deprecated environment variable GREP_COLOR is still
supported,"
Und das verursacht eben ziemlich unschöne Hinweise:
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script

~$ export GREP_COLORS='--color=auto' ; grep grep .bash_history | tail -3
Meinst du vielleicht GREP_OPTIONS ?

root@XYZ:~# GREP_OPTIONS="--color=auto" grep grep .bash_history|head -n1
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script



In der manpage von grep 2.27-2 (Debian 9.3) findet sich zwar:

       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.


Das ist beim grep 2.20-4.1 aus Debian 8.10 noch nicht vorhanden.



Best regards,
  Alexander



Reply to: