scsh-users
[Top] [All Lists]

Re: Shell syntax and Scheme (Reply to Chris Bitmead)

To: alaric@abwillms.demon.co.uk (Alaric B. Williams)
Subject: Re: Shell syntax and Scheme (Reply to Chris Bitmead)
From: Brian D. Carlstrom <bdc@martigny.ai.mit.edu>
Date: Fri, 18 Apr 1997 15:11:08 -0700
Cc: scsh@martigny.ai.mit.edu
Reply-to: "Brian D. Carlstrom" <bdc@ai.mit.edu>
Alaric B. Williams writes:
 > On 17 Apr 1997 23:51:40 -0400, Olin Shivers
 > <shivers@lambda.ai.mit.edu> wrote:
 > 
 > >I would suggest that you'd be better off sticking with a classic
 > >shell-like syntax for the common, everyday issuing of commands, not
 > >simply punting the outer layer of parens. Globbing, for example, is
 > >an important interface between the filesytem and the command line arguments
 > >given to programs. This is built in to the syntax of typical interactive
 > >shells.
 > 
 > But how about (glob <filespec>), which returns a list of string
 > filenames...
 > 
 > (cat "alaric.txt")
 > 
 > (cat . (glob "*.txt"))
 > 
 > Saves all that messiness of escape codes and so on!
 > 
 > ABW
 > --
The person you are replying to is the primary author of scsh - the
Scheme Shell. scsh already has (glob ...) I think he was talking about
preserving an easy to input syntax for interactive use build on top of a
system you can escape to if you want to do something harrier.

-bri

<Prev in Thread] Current Thread [Next in Thread>