On Feb 9, 2008 8:53 AM, Hongzheng Wang <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> 2. In non-interactive use (script programming), what's the main
> advantages of rc over sh/bash?
Things I like of rc:
In both interactive and non-interactive, spaces do not bite you in rc.
in bash
if [ $bla -eq $otherbla ] ; fi endif... ahhh, I can´t remember the
syntax and get the spaces wrong,
never know if I need endif or fi or...
if ( command ) {
}
I don´t need to remember spaces, or contrived grammar.
Also the operator ^ and the fact that it is distributive is really powerful.
Someone else said it, only one quoting simbol
(what does " bla \$e'o" do on bash?, I just invented it, but every time I see
double qoutes I start trembling)
The most important thing is that it is *simple*, it doesn´t have any feature
someone may have thought a shell may need because they didn´t know how
to use sed. It only has a well thought subset of complete features.
--
- curiosity sKilled the cat