This is the mail archive of the guile@cygnus.com mailing list for the guile project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
It seems as though guile-snarf is passing along arguments incorrectly. My copy (from the latest snapshot) looks like this: #!/bin/sh # Extract the initialization actions for builtin things. gcc -E -DSCM_MAGIC_SNARFER $* | grep "^ *% *% *%" | sed -e "s/^ *% *% *%//" ^^ This is wrong for /bin/sh. `$*' means the rest of the arguments, but resplit on whitespace. "$@" is what you want; from sh man page: if $@ is within a pair of double quotes, the positional parameters are substituted and quoted, separated by unquoted spaces ("$1" "$2" ... ) so guile-snarf should be: #!/bin/sh # Extract the initialization actions for builtin things. gcc -E -DSCM_MAGIC_SNARFER "$@" | grep "^ *% *% *%" | sed -e "s/^ *% *% *%//" This actually causes problems when building scwm. Greg J. Badros gjb@cs.washington.edu Seattle, WA USA http://www.cs.washington.edu/homes/gjb