ChanServ changed the topic of #picolisp to: PicoLisp language | Channel Log: https://irclog.whitequark.org/picolisp/ | Check also http://www.picolisp.com for more information
wineroots has joined #picolisp
aw- has joined #picolisp
mario-goulart has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #picolisp
rob_w has joined #picolisp
rob_w has quit [Remote host closed the connection]
aw- has quit [Quit: Leaving.]
mario-goulart has joined #picolisp
orivej has quit [Ping timeout: 264 seconds]
Nistur has joined #picolisp
aw- has joined #picolisp
orivej has joined #picolisp
orivej has quit [Ping timeout: 240 seconds]
rob_w has joined #picolisp
<rob_w> i am fiddling in my picolisp code again ( after a looooong time ) .. now the following line doesnt work (call "rm" "/media/ram/dat/attic/*.dat")
<rob_w> although the path is fine .. the rm still says "file not found"
<rob_w> (gui '(+Able +Button) '(may Settings) ,"Clear all"
<rob_w> '(prog (deleteFiles)) )
<rob_w> is my call to that function ..
<beneroth> Hi rob_w
<beneroth> * wildcard is not working
<beneroth> * wildcard handling is a function of the shell. you call directly 'rm without shell between, you don't get any wildcards substituted
<beneroth> do (call "sh" "-c" "rm /media/ram/dat/attic/*.dat") or something like (use @X (for E (dir "/media/ram/dat/attic/") (when (match '(@X ~(chop ".dat")) (chop E) (call 'rm E) ) ) ) )
<rob_w> ah nice .. thx beneroth
<beneroth> :)
<Regenaxer> Note that the second way needs to 'pack' the path, cause 'dir' delivers only the fgle names
<beneroth> uh right
<Regenaxer> so the 'sh' approach is easiest
<Regenaxer> (though a bit slower probably ;)
<beneroth> or use (chdir "dirpath" (call 'rm ...)) to change the working directory for the operation
<Regenaxer> right, good
rob_w has quit [Quit: Leaving]
orivej has joined #picolisp
<aw-> written 3 years ago thanks to Regenaxer's advice
mmmattyx has joined #picolisp
<Regenaxer> Wow! Nice aw-!
orivej has quit [Quit: orivej]
orivej has joined #picolisp
orivej has quit [Ping timeout: 276 seconds]
orivej has joined #picolisp
mmmattyx has quit [Quit: Connection closed for inactivity]
orivej has quit [Ping timeout: 264 seconds]
shoshin5 has joined #picolisp
shoshin has quit [Ping timeout: 256 seconds]
shoshin5 is now known as shoshin
beneroth has quit [Quit: Leaving]
mmmattyx has joined #picolisp
mmmattyx has quit [Quit: Connection closed for inactivity]