pnkfelix / larceny-test

test import of trac db
Other
2 stars 0 forks source link

Scheme scripts don't always pass command-line arguments correctly #550

Closed larceny-trac-import closed 11 years ago

larceny-trac-import commented 11 years ago

_Reported by: will on Thu Jul 17 13:22:54 2008 _ Suppose temp.sch contains

#!/usr/bin/env scheme-script

(import (rnrs))

(write (command-line))
(newline)

Then

% ./temp.sch "(hello there)" '(big fellow)'
(larceny "./temp.sch" "(hello" "there)" "(big" "fellow)")

but the desired behavior is

% ./temp.sch "(hello there)" '(big fellow)'
(larceny "./temp.sch" "(hello there)" "(big fellow)")

When the first line of temp.sch is removed, and the resulting R6RS top-level program is run in the usual manner, then the desired behavior is obtained.

According to Olin Shivers, this bug was caused by Will's failure to place double quotes around two occurrences of $@ in scheme-script.

larceny-trac-import commented 11 years ago

Author: will Fixed by changeset:5646.