I am using GNU bash, version 4.4.20(1)-release
From: Jesse Hathaway <jesse@mbuki-mvuki.org>
To: lisa-asket@perso.be
Subject: Re: \n displayed instead of newline
Date: 29/06/2021 20:12:50 Europe/Paris
Cc: help-bash@gnu.org
On Tue, Jun 29, 2021 at 12:54 PM <lisa-asket@perso.be> wrote:
>
> Why does the first `\n` display as a string rather than a newline in the
> following printf?
> printf "Usage: $ua\n $ub\n"
hmm, I can't reproduce on 5.1.8:
$ ua=X ub=Y; printf "Usage: $ua\n $ub\n"
Usage: X
Y