[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: echo '-e' doesn't work as expected, or does it?
From: |
Pierre Gaston |
Subject: |
Re: echo '-e' doesn't work as expected, or does it? |
Date: |
Mon, 23 Jan 2012 11:56:47 +0200 |
On Mon, Jan 23, 2012 at 11:47 AM, Ralf Goertz
<r_goertz@usenet.arcornews.de> wrote:
> Philip wrote:
>
>> Hi! Short question this time..
>>
>> $ echo '-e'
>> does not print -e
>>
>> $ echo '-e '
>> does print -e .
>
> By the way, neither -e nor -E are explained in the option section of
> „help echo“. Only -n is mentioned there.
>
> GNU bash, Version 4.2.10(1)-release (x86_64-suse-linux-gnu)
>
you might want to report a bug to suse, here i get:
echo $BASH_VERSION;help echo
4.2.10(1)-release
echo: echo [-neE] [arg ...]
Write arguments to the standard output.
Display the ARGs on the standard output followed by a newline.
Options:
-n do not append a newline
-e enable interpretation of the following backslash escapes
-E explicitly suppress interpretation of backslash escapes
...