On June 11, Thomas Dean wrote:
-------------------------------
How do I do common things like
ls
pwd
I found ?xchdir. But, cannot find the others.
--------------------------------------
Hi Tom,
Here is a homemade ls function based
on the lisp function directory:
------------------------------------------
(%i15) ls(apath) := block ([%aL:[],%pL,%v],
%pL : ?directory (apath),
for %v in %pL do %aL : cons (%v,%aL),
reverse(%aL))$
(%i16) ls ("c:/work2/line1*w.txt");
(%o16) [#pc:/work2/line1b1w.txt, #pc:/work2/line1b2w.txt,
#pc:/work2/line1bw.txt,
#pc:/work2/line1w.txt]
----------------------------------------
As you might surmise, I am using Windows XP, Xmaxima,
and Maxima 5.24.0 (GPL), and I am using one
wildcard "*", although you can use any number.
Ted Woollett