bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add shopts for trailing newlines in command substitution and


From: Martin Schulte
Subject: Re: [PATCH] Add shopts for trailing newlines in command substitution and here strings
Date: Wed, 27 Aug 2025 07:24:22 +0200

Hello Oğuz!

Am Wed, 27 Aug 2025 07:59:53 +0300 schrieb Oğuz <oguzismailuysal@gmail.com>:

> On Wednesday, August 27, 2025, Martin Schulte <gnu@schrader-schulte.de>
> wrote:
> >
> > foo=$(some_command ...).
> >
> 
> The idea is retaining the trailing newlines in the output of `some_command'
> by leaving them behind another character while preserving its exit code.
> This loses the newlines

Oh, yes, sorry - I did something wrong when I tried it out...

Best regards,

Martin



reply via email to

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