Re: a small SBCL question



Zach Beane <xach@xxxxxxxx> writes:

Wildcard expansion is done by the shell, not by programs like "ls"
(most of the time, anyway). RUN-PROGRAM uses something like exec(2) to
run programs. If you wanted shell-style wildcard expansion, you'd have
to run a shell:

(sb-ext:run-program "/bin/sh" (list "-c" "/tmp/*.lisp"))

Oops, this should be:

(sb-ext:run-program "/bin/sh" (list "-c" "/bin/ls /tmp/*.lisp"))

Zach
.