[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gulliver] atelier Bash - spécifications Posix
|
From |
Gilles LAMIRAL <gilles dot lamiral at laposte dot net> |
|
Subject |
Re: [gulliver] atelier Bash - spécifications Posix |
|
Date |
Sun, 15 Oct 2006 21:26:33 +0200 |
Bonjour,
> > tar cf - repertoire | { cd /repertoire/de/destination && tar xvf - ; }
> A quoi sert le ';' ?
Sans le ";" le shell attend toujours la fin de la liste.
Le blanc est tout aussi nécessaire. Bourne avait du mal
dormir la veille en faisant un rêve prémonitoire.
Il s'est dit :
"dans vingt ans ;} sera un smilley, je dois éviter la confusion."
man sh
Compound Commands
(list) list is executed in a subshell
{ list; } list is simply executed in the current shell
--
Au revoir, 02 99 64 31 77
06 20 79 76 06
Gilles Lamiral. France, Chavagne (35310) 08 72 27 33 66