Re: env, -l and command line arguments

2021-02-21 Thread Formbi via General Guile related discussions
Hi > I find it's not easy to understand what you want to do, could you give us an > example? I wanted to be able to do something like that: (unless (or (member "-r" (command-line)) (member "--repl" (command-line))) (begin (display "foo") (newline) (exit))) And I figured out how to do it (and i

Re: env, -l and command line arguments

2021-02-20 Thread Nala Ginrut
Hi Fombi! I find it's not easy to understand what you want to do, could you give us an example? Best regards. On Sun, Feb 21, 2021 at 7:43 AM Formbi wrote: > Hi > > I'd like to make a script and be able to jump into the REPL if needed (for > example if «--repl» is not passed, «(exit)» is run).

env, -l and command line arguments

2021-02-20 Thread Formbi
Hi I'd like to make a script and be able to jump into the REPL if needed (for example if «--repl» is not passed, «(exit)» is run). I also run Guile through env -S, because I'm on Guix and I wanna make the script portable. However, I can't find an easy way to do it. When I use «-l» and pass some