scsh-users
[Top] [All Lists]

Re: run in define-syntax

To: Narang <narang@comcast.net>
Subject: Re: run in define-syntax
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Mon, 21 Oct 2002 19:42:49 +0200
Cc: scsh-news@zurich.ai.mit.edu
>>>>> "Narang" == narang  <narang@comcast.net> writes:

Narang> can someone tell me what's wrong with this
Narang> Welcome to scsh 0.6.2 (Gambit-C 4.0)
Narang> Type ,? for help.
>> ,expand (run (ls))
Narang> '(wait (fork (lambda () (apply exec-path '(ls)))))
>> (define-syntax notify
Narang>   (syntax-rules ()
Narang>     ((notify subj)
Narang>      (notify subj ""))
Narang>     ((notify subj obj)
Narang>      (run (mail -s ,subj "narang") (<< ,obj)))))

>> > ,expand (notify "test")

Narang> Error: unknown i/o redirection
Narang>        (#{Generated << 1311} (#{Generated unquote 1311} ""))
1> 

There is nothing wrong with your code: This is a very embarrassing bug
in the macro for the process forms.

I fixed this in CVS, thanks for the report!

-- 
Martin

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