[Top][All Lists]

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

Re: A note for read builtin

From: Roman Rakus
Subject: Re: A note for read builtin
Date: Thu, 17 Jun 2010 11:51:06 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100430 Fedora/3.0.4-2.fc11 Lightning/1.0b2pre Thunderbird/3.0.4

On 06/17/2010 10:28 AM, Marc Herbert wrote:
- The POSIX standard does allow "echo 1 2 | read a b" to be useful
   (cf. 2.12 "Shell Execution Environment"). Some alternatives to
   bash actually make it useful. Standard and portability concerns
   definitely belong to a reference manual.

Maybe the POSIX expect shell to execute the last command of pipeline not in subshell. Bash executes all commands of pipeline in subshell. Ksh executes all but not the last in subshell. I don't how behave other shells.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]