bug-bash
[Top][All Lists]
Advanced

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

Re: mapfile doesn't accept input from a pipe


From: Chet Ramey
Subject: Re: mapfile doesn't accept input from a pipe
Date: Thu, 29 Jun 2017 14:07:32 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.0

On 6/29/17 12:38 PM, Keith Thompson wrote:

> I suggest that it would be worthwhile to mention this issue in the
> documentation.

"Each  command in a pipeline is executed as a separate process (i.e., in
a subshell).  See COMMAND EXECUTION ENVIRONMENT for a description of  a
subshell  environment.   If  the  lastpipe  option is enabled using the
shopt builtin (see the description of shopt below), the last element of
a pipeline may be run by the shell process."

or maybe

"Builtin commands that are invoked as part of a pipeline are also
executed in a subshell environment."

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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