scsh-users
[Top] [All Lists]

Re: readonly pathlist?

To: Scheme Shell <scsh@zurich.ai.mit.edu>
Subject: Re: readonly pathlist?
From: PILCH Hartmut <phm@a2e.de>
Date: Mon, 1 May 2000 10:02:29 +0000 (/etc/localtime)
Some additions to the error report:

> When exec'uting external binaries, SCSH searches for them in the PATH
> list which is stored in exec-path-list upon invocation of the program.
> 
> Unfortunately it is not possible for the programmer to modify
> exec-path-list.
> 
> When using
> 
>      (set! exec-path-list '("/usr/share/texmf/teTeX/bin" "/usr/bin"))
> 
> in the program texparse.scm I get
> 
>     > (run (texparse.scm))
> Warning: invalid assignment
>          exec-path-list
> 
> When replacing 'set!' with 'define', nothing works anymore and I get
> messages like:
> 
>     > (run (texparse.scm))
> Note: Replaced location
>       #{Location #(#{Location 8266 exec-path-list scsh-level-0} (113) 
> #{Location 8265 exec-path-list user})}
>       #{Location 8266 exec-path-list scsh-level-0}
>       139
> Note: Replaced location
>       #{Location #(#{Location 8266 exec-path-list scsh-level-0} (113) 
> #{Location 8265 exec-path-list user})}
>       #{Location 8266 exec-path-list scsh-level-0}
>       139
>       #{Location #(#{Location 8266 exec-path-list scsh-level-0} (113) 
> #{Location 8265 exec-path-list user})}
>       #{Location 8266 exec-path-list scsh-level-0}
>       139

The latter messages only appear when the scsh environment that was used
for invoking the texparse.scm program was corrupted by a

        (define exec-path-list (cons texbin exec-path-list))

When this isn't the case and I put the above statement in the program
texparse.scm, I simply get no effect.  exec-path-list is changed, but it
has no effect on any (run ...) commands.

With

        (setenv "PATH" (string-append texbin ":" (getenv "PATH")))

it is the same: the value of (getenv "PATH") is changed, but it has no
effect on any (run ...) commands.

-phm





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