On Tue, 18 Mar 2014 16:01:38 +0000, Antoniotti Marco said:
The script you posted is (reformatted)
mkdir -p /tmp/x # Creates directory /tmp/x/ touch "/tmp/x/" # What is the intended effect here? for i in sbcl ccl clisp cmucl ecl abcl scl allegro lispworks gcl xcl do echo $i cl -l $i -iw '(let ((x (directory "/tmp/x/"))) (list "'$i'" x (pathname-name (first x))))' done #cl
If you execute the first two commands on a Mac the result is a just to create the /tmp/x/ directory.
I suspect that some asterisks got lost in the Faré's email and it was supposed to create a file name with a single asterisk:
touch "/tmp/x/*"
Likewise for all the results ironically under the heading "Escape properly".
The call to DIRECTORY in LW returns
CL-USER 1 > (directory "/tmp/x/") NIL ; Which may be not be appropriate...
LW's DIRECTORY never returns the directory itself (i.e. "."), but maybe some other implementations do?