Bug#652509: dash: echo '\1' produces a character code 1

2011-12-18 Thread Reuben Thomas
On 18 December 2011 02:55, Jonathan Nieder jrnie...@gmail.com wrote: Hi again, Jonathan Nieder wrote: # historical XSI and ash behavior That was a little misleading.  Just for fun, here's some history[*]. Thanks for that. I suppose it's rather neat that dash behaves differently from

Bug#652509: dash: echo '\1' produces a character code 1

2011-12-17 Thread Reuben Thomas
Package: dash Version: 0.5.5.1-7.4ubuntu1 Severity: normal Note: I tested this against upstream 0.5.7 too, and this is the best place I can find to report an upstream bug. Sorry if it’s the wrong place. $ dash $ echo '\1'  In case that’s not easy to read, the output is a control-A, i.e.

Bug#652509: dash: echo '\1' produces a character code 1

2011-12-17 Thread Jonathan Nieder
tags 652509 + upstream # POSIX leaves the behavior of echo with escape sequences # implementation-defined. severity 652509 wishlist # historical XSI and ash behavior. Changing it would break # some scripts and make others work. Where it matters, # applications should be using printf instead.

Bug#652509: dash: echo '\1' produces a character code 1

2011-12-17 Thread Jonathan Nieder
Hi again, Jonathan Nieder wrote: # historical XSI and ash behavior That was a little misleading. Just for fun, here's some history[*]. Seventh edition echo did not have any escape sequences. System III and SVR1 echo interpet \0xx The original Almquist shell interprets \0xx. There is a