help-bash
[Top][All Lists]
Advanced

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

\n displayed instead of newline


From: lisa-asket
Subject: \n displayed instead of newline
Date: Wed, 30 Jun 2021 07:44:18 +0200 (CEST)

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



reply via email to

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