Hello! Andy Wingo <wi...@pobox.com> skribis:
> On Sun 26 Aug 2012 23:16, l...@gnu.org (Ludovic Courtès) writes: [...] >> guile -c '(display "good")' --language=ecmascript -c '2 + 2;' > > A first patch is attached. It depends on fluid->parameter and > current-language being a parameter, patches I will push soonish. > > Getting this right is a bit tricky. First of all your example doesn't > work because things stop after a "-c". Right. > In my attached patch, -c and -s respect the current language, but -l > does not. I have the feeling that we should lower `current-language' > to boot-9, to allow some flexibility while avoiding loading up the > compiler unless we have to. Yes, I think we should do whatever it takes to have -l honor the current language. > Another thing is that --lang does not appear to set the language for the > first REPL invocation. We should fix that too, I suppose. Agreed. > Finally, -e uses the Scheme reader. -e is a pretty strange argument > anyway, but hey. That’s probably OK. > Thoughts? Bikeshedding: I’d prefer --language. Perhaps we could have a couple of tests for -c, for instance, as shell scripts in test-suite/standalone? Thanks! Ludo’.