News for hackers. Stuff that matters.
Re:Sedtris: Tetris in sed by w1ntermute on Sunday April 10, 2011 @05:25PM (#2430452)
Haha, I take it you're on Ubuntu? Ubuntu uses dash[0] as its default shell to speed things up. Funny thing is I've run into this same issue before in another context with sh vs bash on Ubuntu. In any case, updated.

0: https://secure.wikimedia.org/wikipedia/en/wiki/Debian_Almqui...

Re:Sedtris: Tetris in sed by ez77 on Monday April 11, 2011 @03:20AM (#2431760)
Ubuntu uses dash as its default shell to speed things up.

Actually it is (sadly) the major reason, but not the only one:

The Debian policy manual has long mandated that "shell scripts specifying '/bin/sh' as interpreter must only use POSIX features"; in fact, this requirement has been in place since well before the inception of the Ubuntu project. Furthermore, any shell scripts that expected to be portable to other Unix systems, such as the BSDs or Solaris, already honoured this requirement. Thus, we felt that the compatibility impact of this change would be minimal. [1]

Personally I think that assuming nothing but POSIX is a more compelling reason than efficiency.

[1] https://wiki.ubuntu.com/DashAsBinSh

Re:Sedtris: Tetris in sed by tkahn6 on Sunday April 10, 2011 @07:07PM (#2430668)
You know I almost specified my distribution but thought 'surely that wouldn't make a difference'. lol