Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Interesting zsh behaviour regarding awk and backslash



İsmail Dönmez wrote:
> On Tue, Sep 27, 2011 at 3:51 PM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>> On 27 September 2011 13:42, İsmail Dönmez <ismail@xxxxxxxxxxx> wrote:
[...]
>> > Ideas?
>>
>> setopt bsdecho (it changes whether -e or -E is the default mode).
>>
>
> Thanks that works,  any reason this is not on by default for sh
> compatibility though?

You can't really portable with `echo'. Even the POSIX section about
`echo' explicitly says something like "For portable applications, use
`printf' instead.".

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925



Messages sorted by: Reverse Date, Date, Thread, Author