Comment 3 for bug 159776

Revision history for this message
Michael D. Adams (mdmkolbe) wrote :

Given that R6RS specifies the behavior, I see your point. One option might be to change the interactive behavior to supply a dummy "argv[0]". For example, GHC will report "<interactive>" as the program name when in interactive mode. Or Python just goes with the empty string. In the end it is up to you. I just tripped over it when I tested whether "(command-line)" included the program name by running it on the command like and then got bit when it was different inside a script.