[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mapfile doesn't accept input from a pipe
From: |
Eduardo A . Bustamante López |
Subject: |
Re: mapfile doesn't accept input from a pipe |
Date: |
Thu, 29 Jun 2017 08:56:33 -0500 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Wed, Jun 28, 2017 at 07:08:27PM -0700, Keith Thompson wrote:
[...]
> mapfile REDIRECT < /tmp/input.txt
> cat /tmp/input.txt | mapfile PIPE
The `mapfile PIPE' is a piece of a pipeline, and as such, it runs in a
subshell (different process).
See: http://mywiki.wooledge.org/BashFAQ/024
--
Eduardo Bustamante
https://dualbus.me/