help-bash
[Top][All Lists]
Advanced

[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.



reply via email to

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