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

Re: [HS] Petite question bash sur les redirections



Le Ven 17 octobre 2008 16:43, Bruno Muller a écrit :
[...]
>> Comme la chose se trouve un peu partout dans le code bash,
>> je pensais faire :
>> if [ VersDevNull -eq 1 ]; then
>>   Sortie="/dev/null"
>> else
>>   Sortie="/dev/console_en_cours"
>> fi

> Sortie_std="/proc/self/fd/1"
> Sortie_err="/proc/self/fd/2"

J'aurais bien tenté :
  Sortie='> /dev/null'
else
  Sortie=''

Qui doivent marcher aussi.



Fanfan
-- 
http://www.cerbelle.net - http://www.afdm-idf.org


Reply to: