scsh-users
[Top] [All Lists]

default process forms

To: "scsh-users" <scsh-users@scsh.net>
Subject: default process forms
From: "xiaolei zhang" <maths@21cn.com>
Date: Tue, 11 Apr 2006 18:02:40 +0800
List-id: <scsh-users.list-id.scsh.net>
hello:

        The Scsh Reference Manual said:

------------------------------------------------------------------------------------
The default case (prog arg1 ... argn) is also implicitly backquoted. That is, 
it is equivalent to:

    (begin (apply exec-path `(prog arg1 ... argn)))

-------------------------------------------------------------------------------------

   I had tried:

        1、(ls)
        2、(begin (apply exec-path `(ls)))
    3、(run (ls))

        1 fails, and 2,3 worked. But the reference manual saids 1 is equivalent 
to 2, why 1 fails? The error messages are:

----------------------------
Error: undefined variable
       ls
       (package user)
----------------------------

        thank you

        xiaolei zhang
        maths@21cn.com
          2006-04-11
<Prev in Thread] Current Thread [Next in Thread>