scsh-users
[Top] [All Lists]

run in define-syntax

To: scsh-news@zurich.ai.mit.edu
Subject: run in define-syntax
From: Narang <narang@comcast.net>
Date: 18 Oct 2002 19:05:32 -0400
can someone tell me what's wrong with this

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

> > ,expand (notify "test")

Error: unknown i/o redirection
       (#{Generated << 1311} (#{Generated unquote 1311} ""))
1> 
-- 
रा��व बिन�ता नियन�त

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