For example, I have a bunch of files name like this:
[foo
And I'm writing some code to collect and do some process to them.
(setf a (car (uiop:directory-files "/path/to/dir")));;for simplicity
;;we suppose there is only a [foo at /path/to/dir
(uiop:run-program (list "cat" (namestring a)));; cat is just an example
then it says this:
Subprocess #<UIOP/LAUNCH-PROGRAM::PROCESS-INFO {1009C93CA3}>
with command ("cat" "/path/to/dir/\\[foo")
exited with error code 1
while (uiop:run-program (list "cat" "/path/to/dir/\[asd"))
looks good.
I have also tried something like this:
(format NIL "~A" a)
(format NIL "~S" temp)
(princ-to-string temp)
So How can I call run-program with a rigth pathname?