[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFE: new syntax for command substitution to keep trailing newlines?
From: |
Chet Ramey |
Subject: |
Re: RFE: new syntax for command substitution to keep trailing newlines? |
Date: |
Sat, 30 Jan 2021 13:44:13 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 |
On 1/29/21 1:21 PM, Alex fxmbsw7 Ratchev wrote:
im sorry big time.. can you point me out how
i just commented the #if and #endif s , thought thatd enable the code .. in
parse and tab
Sorry, "commenting" code using #if 0 is a pretty common idiom. There are
two places in parse_string_to_word_list() that have #if 0...#endif blocks.
The first one is tagged with your name. Change the #if 0 to #if 1 in both
blocks and see if that fixes the problem.
It fixes the reproducer in
https://lists.gnu.org/archive/html/bug-bash/2020-11/msg00077.html
and
https://lists.gnu.org/archive/html/bug-bash/2020-11/msg00079.html
which is a distillation of your original example to something easily
reproducible.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
- Re: RFE: new syntax for command substitution to keep trailing newlines?, (continued)
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Greg Wooledge, 2021/01/27
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Chet Ramey, 2021/01/27
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Alex fxmbsw7 Ratchev, 2021/01/27
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Chet Ramey, 2021/01/27
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Alex fxmbsw7 Ratchev, 2021/01/27
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Chet Ramey, 2021/01/27
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Alex fxmbsw7 Ratchev, 2021/01/29
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Chet Ramey, 2021/01/29
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Alex fxmbsw7 Ratchev, 2021/01/29
- Message not available
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Alex fxmbsw7 Ratchev, 2021/01/30
- Re: RFE: new syntax for command substitution to keep trailing newlines?,
Chet Ramey <=
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Léa Gris, 2021/01/27
- Re: RFE: new syntax for command substitution to keep trailing newlines?, Chet Ramey, 2021/01/27
- Re: RFE: new syntax for command substitution to keep trailing newlines?, pepa65, 2021/01/27
Re: RFE: new syntax for command substitution to keep trailing newlines?, Koichi Murase, 2021/01/27
Re: RFE: new syntax for command substitution to keep trailing newlines?, Clark Wang, 2021/01/27