FG
💻 Software

echo newline character not working in bash

Fresh5 days ago
Mar 15, 202658538 views
Confidence Score0%
0%

Problem

I have bash script which has lots of statements and also I aliased to both in and , so that new lines are printed properly for a statement like the output should be but the output I am getting is I even tried using in the script, it doesn't help I am running my script as ; if I run it as I am getti…

Error Output

Hello
World

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: echo newline character not working in bash

Low Risk

The mixed history of means its default operation varies from shell to shell. POSIX specifies that the result of is “implementation-defined” if the first argument is or any argument contains a backslash. It is more reliable to use (either as a built-…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment