Code Select
(define (run-sh sTr) (exec (format {'%s'} sTr)))
newLISP can call it like this:
Code Select
(run-sh {ls -a -l})
or, so i wish. The problem is this is my error message:Code Select
sh: ls -a -l: command not found
I know you're probably wondering 'why not use (exec ...?' but, let's say, if I wanted to do this, how can i pass a list of strings to ยป; }