[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: any plans for command substitution that preserves trailing newlines?
From: |
Christoph Anton Mitterer |
Subject: |
Re: any plans for command substitution that preserves trailing newlines? |
Date: |
Wed, 26 Jan 2022 00:46:49 +0100 |
User-agent: |
Evolution 3.42.2-1 |
On Wed, 2022-01-26 at 00:37 +0100, Alex fxmbsw7 Ratchev wrote:
> mapfile -d '' a < <(printf my\\n\\n ) ; declare -p a
> declare -a a=([0]=$'my\n\n')
Thanks, but the original goal was something that works in bash *and*
other POSIX compatible shells :-)
Cheers,
Chris.
- Re: any plans for command substitution that preserves trailing newlines?, (continued)
- Re: any plans for command substitution that preserves trailing newlines?, Christoph Anton Mitterer, 2022/01/26
- Re: any plans for command substitution that preserves trailing newlines?, Chet Ramey, 2022/01/26
- Re: any plans for command substitution that preserves trailing newlines?, Christoph Anton Mitterer, 2022/01/26
- Re: any plans for command substitution that preserves trailing newlines?, Chet Ramey, 2022/01/27
- Re: any plans for command substitution that preserves trailing newlines?, Christoph Anton Mitterer, 2022/01/27
- Re: any plans for command substitution that preserves trailing newlines?, Chet Ramey, 2022/01/28
- Re: any plans for command substitution that preserves trailing newlines?, Christoph Anton Mitterer, 2022/01/28
- Re: any plans for command substitution that preserves trailing newlines?, Chet Ramey, 2022/01/29
Re: any plans for command substitution that preserves trailing newlines?, Alex fxmbsw7 Ratchev, 2022/01/25
Re: any plans for command substitution that preserves trailing newlines?, Alex fxmbsw7 Ratchev, 2022/01/25
- Re: any plans for command substitution that preserves trailing newlines?,
Christoph Anton Mitterer <=