I want to pass sbcl a string as a single argument using a bashcript but sbcl splits the string into a list.
bashscript
#!/bin/bash
sbcl --noinform --eval "(progn (FORMAT t \"~{~a~%~}\" sb-ext:*posix-argv*)(eval (read-from-string (second sb-ext:*posix-argv*))))" $1
execution:
>sh bashsrcipt.bs "\"(FORMAT t \"YEAH\")\""
sbcl
"(FORMAT
t
"YEAH")"
debugger invoked on a END-OF-FILE in thread
#<THREAD "initial thread" RUNNING {1002999833}>:
end of file on #<SB-IMPL::STRING-INPUT-STREAM {100443F523}>
But the result should have been
>sh bashcript.bs "\"(FORMAT t \"YEAH~%\"\")"
sbcl
"(FORMAT t \"YEAH\")"
YEAH
The manual does not mention such behavior.