On Wed, Dec 08, 2010 at 07:58:15AM +0300, Andrey Nikitin wrote:
> В Wed, 08 Dec 2010 02:04:36 +0300
> sergio <mail...@sergio.spb.ru> пишет:
> 
> > Где я туплю?
> read в dash-е (нынешнем /bin/sh) также ведёт себя как read в bash-е

Не read, а pipeline. Сравни:

$ read a
test
$ echo $a
test

с вот этим

$ echo test | read a ; echo $a
(пусто)

$ man bash
/Pipelines

      Each command in a pipeline is executed as a separate process (i.e., in a 
subshell).
      
-- 
Stanislav


-- 
To UNSUBSCRIBE, email to debian-russian-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20101208125649.ga13...@kaiba.homelan

Ответить