Hi Eric,

> I want to define a function which takes a parameter with a shell command.

> My initial expression is: (in '(grep -v "#"
> "~/path/to/file.txt")... and it works well.

Right, but note that the tilde won't be expanded (this is a shell feature).


> (de loadFile (X) (in '(grep -v "#" X)...

The list is quoted, so the elements are not evaluated. Better is:

   (de loadFile (X)
      (in (list "grep" "-v" "#" X)
         ...

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to