[jamming] jam shell

Sanel Zukan sanelz at gmail.com
Fri Mar 30 08:11:08 PST 2007


> 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


More information about the jamming mailing list