[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fc keeps set -v for process substitution
From: |
Chet Ramey |
Subject: |
Re: fc keeps set -v for process substitution |
Date: |
Tue, 28 Mar 2017 10:50:50 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 3/27/17 2:16 PM, Grisha Levit wrote:
> When the command to be fixed-up has a process substitution, `fc' prints
> out not only the fixed-up command (as expected) but also any commands that
> are part of a process substitution in the command:
>
> $ FCEDIT=':' # doesn't really matter
> $ : <(: A)
> $ fc
> : <(: A) # expected
> : A # not expected
A process substitution shell is a subshell: it's created as an exact
duplicate of the parent shell, including options. I changed this for
command substitution in bash-4.4, so we can try changing it for
process substitution.
Chet
--
``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/