Re: [dev] Re: Suckless sh [Was: Re: New utility]

From: Ethan Grammatikidis <eekee57_AT_fastmail.fm>
Date: Mon, 26 Sep 2011 23:16:37 +0100

On Mon, 26 Sep 2011 13:47:58 +0000
Bjartur Thorlacius <svartman95_AT_gmail.com> wrote:

> >> rc's redirection syntax is remarkably clean and powerful, but it
> >> shouldn't be very hard to hack "2>&1" support in there if you don't want
> >> to use ">[2=1]".
> >
> > Actually I find rc's way less annoying than bash's but there's a sort
> > of inconsistancy between > and | which might be there for a good reason
> > but which keeps surprising me.
> >
> >
> Care to elaborate?

Okay. I'm a bit brain-dead this week but if I remember right:

This puts stdout and stderr in the same place:
$ foo 2>&1 | bar

This puts them in different places:
$ foo 2>&1 > file

Similar for rc.
Received on Tue Sep 27 2011 - 00:16:37 CEST

This archive was generated by hypermail 2.2.0 : Tue Sep 27 2011 - 00:24:04 CEST