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

Re: soucis avec grep



On 2015-05-11 17:30:15 +0200, Sébastien NOBILI wrote:
> Le lundi 11 mai 2015 à 17:01, Bernard Schoenacker a écrit :
> > > Que retourne la commande suivante ?
> > > 
> > >     echo $GREP_OPTIONS
> > 
> > je n'obtien aucune réponse
> 
> OK, donc la variable n'est pas définie, le problème ne vient pas de là.

Non, elle peut très bien être définie à une suite d'espace
(éventuellement vide). La bonne commande est:

  printenv GREP_OPTIONS

Cela permet de faire la différence:

cassis% printenv GREP_OPTIONS
cassis% export GREP_OPTIONS=""
cassis% printenv GREP_OPTIONS

cassis%

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: