On Wed, Dec 08, 2010 at 07:58:15AM +0300, Andrey Nikitin wrote:
> В Wed, 08 Dec 2010 02:04:36 +0300
> sergio <[email protected]> пишет:
> 
> > Где я туплю?
> 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 [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Ответить