|
List Info
Thread: jam shell
|
|
| jam shell |
  France |
2007-03-29 19:19:16 |
Hi,
I just had a thought.
I like the jam syntax and I thought it would be great to
replace our
unix shell by something similar to jam.
The main problem in the standard unix shell, I think, are
the weird
variable expansion rules that makes it difficult to write
shell scripts.
For example there is common bug, often shell scripts doesn't
handle
correctly filenames with spaces in them.
Does anyone here about a such shell ?
Mildred
--
Mildred <xmpp:mildred jabber.fr> <http://mildred632.free
.fr/>
Clef GPG : <hkp://pgp.mit.edu> ou <http://mildred6
32.free.fr/gpg_key>
Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D
2E2B]
_______________________________________________
jamming mailing list - jamming perforce.com
http://maillist.perforce.com/mailman/listinfo/jamming
|
|
| Re: jam shell |

|
2007-03-29 20:40:11 |
|
Filenames with spaces are an abomination (as is case-insensitivity... can you tell I'm not a Windoze fan? But the shell can handle them -- you just need to quote them.
Diane
On 3/29/07, Mildred < ml.mildred593 online.fr">ml.mildred593 online.fr> wrote:
Hi,
I just had a thought.
I like the jam syntax and I thought it would be great to replace our unix shell by something similar to jam.
The main problem in the standard unix shell, I think, are the weird
variable expansion rules that makes it difficult to write shell scripts. For example there is common bug, often shell scripts doesn't handle correctly filenames with spaces in them.
Does anyone here about a such shell ?
Mildred
-- Mildred < xmpp:mildred jabber.fr">xmpp:mildred jabber.fr> <http://mildred632.free.fr/> Clef GPG : <hkp://pgp.mit.edu> ou <
http://mildred632.free.fr/gpg_key> Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B] _______________________________________________ jamming mailing list -
jamming perforce.com">jamming perforce.com http://maillist.perforce.com/mailman/listinfo/jamming
|
| Re: jam shell |

|
2007-03-30 11:11:08 |
> I like the jam syntax and I thought it would be great
to replace our
> unix shell by something similar to jam.
You mean a shell with jam syntax, or... ?
> The main problem in the standard unix shell, I think,
are the weird
> variable expansion rules that makes it difficult to
write shell scripts.
> For example there is common bug, often shell scripts
doesn't handle
> correctly filenames with spaces in them.
This is not a bug, all shells works like this. The golden
rule of shell
scripting is that variables should be quoted, unless you
know what are
you doing. Differentiating between quoted and unquoted can
be called a
feature since with it can be accomplished very cool tricks.
For example (random thoughts), this would be very hard to
distinguish
for jam-like shell:
c = ls && pwd ; # we want 'ls && pwd'
string or to execute each of them ?
c = "ls && pwd" ; # more shell like
behaviour, this is a string
--
Sanel
_______________________________________________
jamming mailing list - jamming perforce.com
http://maillist.perforce.com/mailman/listinfo/jamming
|
|
| Re: jam shell |

|
2007-03-30 15:20:08 |
The requirement for spaces before semicolons alone makes
this a poor
choice as a shell syntax. (It almost disqualifies it as a
syntax
humans are allowed to touch... but we fix that by having an
svn
commit-hook that runs a "jamlint" tool that, among
other things, looks
for tokens with semicolons "in" them and reports
them as syntax errors
(and prevents the commit.) It is unambiguous - it's just
different
enough from everything else that it's error-encouraging...)
(Yes, there are places where spaces matter in sh
conditionals too -
and they bite people, but it's already ubiquitous - it isn't
getting
displaced by something with *more* of that class of problem
On 3/30/07, Sanel Zukan <sanelz gmail.com> wrote:
> > I like the jam syntax and I thought it would be
great to replace our
> > unix shell by something similar to jam.
>
> You mean a shell with jam syntax, or... ?
>
> > The main problem in the standard unix shell, I
think, are the weird
> > variable expansion rules that makes it difficult
to write shell scripts.
> > For example there is common bug, often shell
scripts doesn't handle
> > correctly filenames with spaces in them.
>
> This is not a bug, all shells works like this. The
golden rule of shell
> scripting is that variables should be quoted, unless
you know what are
> you doing. Differentiating between quoted and unquoted
can be called a
> feature since with it can be accomplished very cool
tricks.
>
> For example (random thoughts), this would be very hard
to distinguish
> for jam-like shell:
>
> c = ls && pwd ; # we want 'ls && pwd'
string or to execute each of them ?
> c = "ls && pwd" ; # more shell like
behaviour, this is a string
>
> --
> Sanel
> _______________________________________________
> jamming mailing list - jamming perforce.com
> http://maillist.perforce.com/mailman/listinfo/jamming
>
--
_Mark_ <eichin thok.org> <eichin gmail.com>
_______________________________________________
jamming mailing list - jamming perforce.com
http://maillist.perforce.com/mailman/listinfo/jamming
|
|
| Re: jam shell |

|
2007-03-31 00:44:24 |
Hi,
technically speaking, the Rc shell doesn't have the Jam
syntax, but
it treats each value as a list of strings as well, which
makes for much
pleasant operations. Have a look, there's even a Unix port:
http://en.wikipedia.o
rg/wiki/Rc
Hope this helps,
- David
On Fri, 30 Mar 2007 02:19:16 +0200, "Mildred"
<ml.mildred593 online.fr> said:
> Hi,
>
> I just had a thought.
>
> I like the jam syntax and I thought it would be great
to replace our
> unix shell by something similar to jam.
>
> The main problem in the standard unix shell, I think,
are the weird
> variable expansion rules that makes it difficult to
write shell scripts.
> For example there is common bug, often shell scripts
doesn't handle
> correctly filenames with spaces in them.
>
> Does anyone here about a such shell ?
>
> Mildred
>
> --
> Mildred <xmpp:mildred jabber.fr> <http://mildred632.free
.fr/>
> Clef GPG : <hkp://pgp.mit.edu> ou <http://mildred6
32.free.fr/gpg_key>
> Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6
[9A7D 2E2B]
> _______________________________________________
> jamming mailing list - jamming perforce.com
> http://maillist.perforce.com/mailman/listinfo/jamming
_______________________________________________
jamming mailing list - jamming perforce.com
http://maillist.perforce.com/mailman/listinfo/jamming
|
|
[1-5]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|