This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: faq fodder: best way to...?


thi <ttn@revel.glug.org> writes:

> - augment `%load-path' from outside guile scheme (setting env var
>   clobbers `%load-path', does not pre/post-pend)

Here it does prepend:

kalle@PC486:~$ GUILE_LOAD_PATH="foo" guile -c '(display %load-path) (newline)'
(foo /home/kalle/share/guile/site /home/kalle/share/guile/1.3.5 /home/kalle/share/guile .)
kalle@PC486:~$

> - invoke script w/o using hardcoded /full/path/to/guile

I did this:

#! /bin/sh
# Launch the -*- scheme -*- interpreter in $PATH.
exec guile -s "$0" "$@"
!#

I'm not sure this behaves sensibly if guile is missing;
perhaps there should be a "-e" on the #! line.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]