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

Re: [bash] exitcode



On 2013-03-15 15:15:16 +0100, Basile Starynkevitch wrote:
> Essaie:
> 
>   time { (command; exit_de_ma_commande=$? ) 2>&1 | tee fichier; }
>   
> puis
> 
>   echo $exit_de_ma_commande

Puisque (command; exit_de_ma_commande=$? ) lance un sous-shell,
ça ne va pas marcher.

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


Reply to: