scsh-users
[Top] [All Lists]

Re: my #! line quit working

To: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Subject: Re: my #! line quit working
From: Terrence Brannon <metaperl@urth.org>
Date: Fri, 16 Apr 2004 09:52:56 -0400
Cc: scsh@zurich.csail.mit.edu
Martin Gasbichler wrote:
Terrence Brannon <metaperl@urth.org> writes:

  
For some reason I get an error when attempting to run my scsh script
from the command-line even though I have been using this script for
about 3 months now... could someone tell me what is wrong?
    

We need some more hints to help. Please tell us: Which error do you
get?  Which version of scsh and which OS are you using? Did you change
any of these recently?

  
Sorry for the lack of information. Anyway: here it goes straight from the shell:

        ~/sbin $ ./netdump
Unknown switch -s
 
Usage: scsh [meta-arg] [switch ..] [end-option arg ...]

meta-arg: \ <script-file-name>

switch:    -e <entry-point>    Specify top-level entry point.
    -o <structure>        Open structure in current package.
    -m <package>        Switch to package.
    -n <new-package>    Switch to new package.


    -lm <module-file-name>    Load module into config package.
        -le <exec-file-name>    Load file into exec package.
    -l  <file-name>        Load file into current package.

    -ll <module-file-name>  As in -lm, but search the library path list.
    -lel <exec-file-name>   As in -le, but search the library path list.
    +lp  <dir>        Add <dir> to front of library path list.
    lp+  <dir>        Add <dir> to end of library path list.
    +lpe <dir>        +lp, with env var and ~user expansion.
    lpe+ <dir>        lp+, with env var and ~user expansion.
    +lpsd            Add script-file's dir to front of path list.
    lpsd+            Add script-file's dir to end of path list.
    -lp-clear        Clear library path list to ().
    -lp-default        Reset library path list to system default.

    -ds             Do script.
    -dm            Do script module.
    -de            Do script exec.

end-option:    -s <script>    Specify script.
        -sfd <num>    Script is on file descriptor <num>.
        -c <exp>    Evaluate _expression_.
        --        Interactive session.
        ~/sbin $ uname -a
CYGWIN_NT-5.1 moksha 1.5.7(0.109/3/2) 2004-01-30 19:32 i686 unknown unknown Cygwin
        ~/sbin $ scsh
Welcome to scsh 0.6.5 (0.6.6)
Type ,? for help.
>
> (exit)
        ~/sbin $ head -5 ./netdump
#!/home/metaperl/install/scheme48/bin/scsh \
-o let-opt -e main -s
!#

(define base-dump "base-dump")
        ~/sbin $
        ~/sbin $ which scsh
/home/metaperl/install/scheme48/bin/scsh
        ~/sbin $
<Prev in Thread] Current Thread [Next in Thread>