Can system modify an environment variable in the current environment?

2021-09-02 Thread Mortimer Cladwell
Hi, Consider my file test.scm: (define (main args) (let* ((myvar (string-append "export GUILE_LOAD_PATH=/some/random/text:$GUILE_LOAD_PATH")) (statement1 (system (string-append "echo " myvar " >> $HOME/.bashrc"))) (statement2 (system myvar))) (write myvar))) At the t

Re: Can system modify an environment variable in the current environment?

2021-09-02 Thread Roel Janssen
Dear Mortimer, On Thu, 2021-09-02 at 15:49 -0400, Mortimer Cladwell wrote: > Hi, > > Consider my file test.scm: > > (define (main args) >   (let* ((myvar (string-append "export > GUILE_LOAD_PATH=/some/random/text:$GUILE_LOAD_PATH")) >    (statement1 (system (string-append "echo " myvar "

Re: Can system modify an environment variable in the current environment?

2021-09-02 Thread Taylan Kammer
On 02.09.2021 21:49, Mortimer Cladwell wrote: > Hi, > > Consider my file test.scm: > > (define (main args) > (let* ((myvar (string-append "export > GUILE_LOAD_PATH=/some/random/text:$GUILE_LOAD_PATH")) >(statement1 (system (string-append "echo " myvar " >> > $HOME/.bashrc"))) >