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

2011-09-27 Thread Bjartur Thorlacius
On 9/26/11, Ethan Grammatikidis eeke...@fastmail.fm wrote:
 Okay. I'm a bit brain-dead this week but if I remember right:

 This puts stdout and stderr in the same place:
 $ foo 21 | bar

 This puts them in different places:
 $ foo 21  file

Didn't rc fix this by executing file and file descriptor redirection ltr?



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

2011-09-26 Thread Bjartur Thorlacius
On Sun, Sep 25, 2011 at 8:38 PM, Ethan Grammatikidis
eeke...@fastmail.fm wrote:
 On Sun, 25 Sep 2011 20:17:23 +0200
 Christian Neukirchen chneukirc...@gmail.com wrote:

 Ethan Grammatikidis eeke...@fastmail.fm writes:

 Shell language in general, as a tool to use. It's not just cp  mv,
 there are other things.

cp -r and mv -r should be split into separate commands, agreed. And
named arguments should be passed in environ instead of argv (which, as
an array, should be reserved for positional arguments). But you can't
blame the shell. Try bashing terminal emulators, I think we can all
agree on their obsoleteness :)


 rc's redirection syntax is remarkably clean and powerful, but it
 shouldn't be very hard to hack 21 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?



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

2011-09-26 Thread Ethan Grammatikidis
On Mon, 26 Sep 2011 13:47:58 +
Bjartur Thorlacius svartma...@gmail.com wrote:

  rc's redirection syntax is remarkably clean and powerful, but it
  shouldn't be very hard to hack 21 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 21 | bar

This puts them in different places:
$ foo 21  file

Similar for rc.



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

2011-09-25 Thread Ethan Grammatikidis
On Sun, 25 Sep 2011 20:17:23 +0200
Christian Neukirchen chneukirc...@gmail.com wrote:

 Ethan Grammatikidis eeke...@fastmail.fm writes:
 
  It's redirection and the behaviour of cp  mv when the last arg is a
  dir that bother me, in rc.
 
 What has the behavior of cp and mv to do with the shell used?

Shell language in general, as a tool to use. It's not just cp  mv,
there are other things.

 
 rc's redirection syntax is remarkably clean and powerful, but it
 shouldn't be very hard to hack 21 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.