FG
šŸ’» Software

Why doesn't echo support "\e" (escape) when using the -e argument in MacOSX

Fresh7 days ago
Mar 15, 202629709 views
Confidence Score0%
0%

Problem

When I try to print out some colored text using ANSI escape sequences via the built-in command, it seems that the escape sequence in the string I provide is interpreted literally instead of as the "escape" it's supposed to represent. This only happens in Snow Leopard -- the examples below work as i…

Error Output

~ $ 
~ $ echo "\n"
\n
~ $ echo -e "\n"


~ $

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Why doesn't echo support "\e" (escape) when using the -e argument in MacOSX

Low Risk

Try instead of .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment