scsh-users
[Top] [All Lists]

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

To: scsh@martigny.ai.mit.edu
Subject: Re: Shell syntax and Scheme (Reply to Chris Bitmead)
From: alaric@abwillms.demon.co.uk (Alaric B. Williams)
Date: Fri, 18 Apr 1997 20:23:51 GMT
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
--
"Plug and Play support: WfEWAD will autodetect any installed
Nuclear Arsenals, Laser Satellites, Battlefield Control Networks,
Radar Installations, Fighter Squadrons, and other WfEWAD compliant
devices, including the new Macrosoft Unnatural Keyboard, with
full support for the now-famous Big Red Buttom(tm)."

(Windows for Early Warning and Defence User's manual P26)

Alaric B. Williams Internet : alaric@abwillms.demon.co.uk
<A HREF="http://www.abwillms.demon.co.uk/";>Hello :-)</A>

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