Subject: Re: echo -e echoes the argument

From: Jonathan Nieder <[email-masked]>
Date: Mon, 14 Feb 2011 18:29:46 -0600

retitle 550399 dash: document differences from bash
severity 550399 wishlist
tags 550399 + upstream
quit

Hi,

porneL wrote:

> In bash -e flag is required to enable interpretation of escape
> sequences. dash doesn't take such argument. 
> The result is that there is no common syntax for echo with escape
> sequences in the the two shells:

I think you are looking for

	printf '%b\n' '\n'

See the entry for "echo" at http://unix.org/2008edition/ for details.

Hope that helps,
Jonathan