[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trick for using guile, even when you don't know where it's installed
From: |
Martin Grabmueller |
Subject: |
Re: Trick for using guile, even when you don't know where it's installed. |
Date: |
Thu, 26 Jul 2001 07:22:23 +0200 |
> From: Rob Browning <address@hidden>
> Date: 25 Jul 2001 16:00:07 -0500
>
> If you want to use a guile script for something, but you want it to be
> portable to any system where guile's in the user's path, I've found
> this particular trick fairly useful. It only relies on the existence
> of #!/bin/sh, and guile *somewhere* in the user's path.
>
> #!/bin/sh
> exec guile -s "$0"
> !#
> (display "Hello\n")
Depending on what you want to do, this may be even better:
#!/bin/sh
exec guile -s "$0" "$@"
!#
(display "Hello. Arguments:\n")
(display (command-line))
(newline)
It allows you to pass parameters to your scripts.
HTH too,
'martin