scsh-users
[Top] [All Lists]

Re: my #! line quit working

To: Terrence Brannon <metaperl@urth.org>
Subject: Re: my #! line quit working
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Fri, 16 Apr 2004 16:05:40 +0200
Cc: scsh@zurich.csail.mit.edu
Terrence Brannon <metaperl@urth.org> writes:
>
> Sorry for the lack of information. Anyway: here it goes straight from
> the shell:
>
>         ~/sbin $ ./netdump
> Unknown switch -s

[snip]

> 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 $

Hmm, looks strange. Please ensure that there is no space behind the
"\" and the "-s", but otherwise your script looks fine. 

You could also try to move the scsh executable so to shorten the path
to it. Some operation systems have problems if the path after the #!
trigger gets to long. 

Another possibility would be that this is a cygwin problems but I
don't know enough about cygwin to help you there.

-- 
Martin

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