[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cd with multiple arguments?
From: |
Marc Herbert |
Subject: |
Re: cd with multiple arguments? |
Date: |
Wed, 15 Dec 2010 10:17:33 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 |
Le 14/12/2010 20:12, Chris F.A. Johnson a écrit :
> I stongly disagree with that statement. The shell *is* a programming
> language, especially with the extensions in bash.
>
> In recent years I have stopped using any other language; the shell
> is more than adequate for all my programming needs.
I use and abuse the shell but I do not consider it as a "real"
programming language is because it was not really designed as one from
day one. It rather grew from the command line interface as explained
in this great interview of Steve Bourne:
http://www.computerworld.com.au/article/279011/a-z_programming_languages_bourne_shell_sh/
As a consequence, there are just too many subtleties around
quoting. Quoting (pun intended) the interview:
"And so [the shell] is constrained to be both a command line
interpreter and a scripting language. As the Unix command line
interpreter, for example, you wouldn’t want to be typing commands and
have all the strings quoted like you would in C, because most things
you type are simply uninterpreted strings."
If the shell was a "real" programming language, then I would not
constantly forget quoting subtleties and I would not need to go
here time and again:
http://www.mpi-inf.mpg.de/~uwe/lehre/unixffb/quoting-guide.html#para:sh-input-nterp
If the shell was "real" programming language, then we would not have
such a massive ban on setuid scripts (I am not saying setuid is a
great feature, this is not the point here; the point is why is the
shell the only language under such a ban?)
- cd with multiple arguments?, Keith Thompson, 2010/12/09
- Re: cd with multiple arguments?, Keith Thompson, 2010/12/09
- Re: cd with multiple arguments?, Eric Blake, 2010/12/09
- Re: cd with multiple arguments?, Chet Ramey, 2010/12/09
- Re: cd with multiple arguments?, Marc Herbert, 2010/12/10
- Re: cd with multiple arguments?, Chris Jones, 2010/12/10
- Re: cd with multiple arguments?, Marc Herbert, 2010/12/13
- Message not available
- Re: cd with multiple arguments?, Stephane CHAZELAS, 2010/12/13
- Re: cd with multiple arguments?, Marc Herbert, 2010/12/14
- Re: cd with multiple arguments?, Chris F.A. Johnson, 2010/12/14
- Re: cd with multiple arguments?,
Marc Herbert <=
- Re: cd with multiple arguments?, Illia Bobyr, 2010/12/15
- Re: cd with multiple arguments?, Marc Herbert, 2010/12/17
- Re: cd with multiple arguments?, Illia Bobyr, 2010/12/17
- Re: cd with multiple arguments?, Greg Wooledge, 2010/12/17
- Re: cd with multiple arguments?, Bob Proulx, 2010/12/15
- Re: cd with multiple arguments?, Marc Herbert, 2010/12/16
- Re: cd with multiple arguments?, Bob Proulx, 2010/12/16
- Re: cd with multiple arguments?, Marc Herbert, 2010/12/17
- Re: cd with multiple arguments?, Greg Wooledge, 2010/12/17
- Re: cd with multiple arguments?, Illia Bobyr, 2010/12/17