Hello Alex,
That's perfect! Thanks a lot.
Eric
Le 23/09/2019 à 18:18, Alexander Burger a écrit :
The list is quoted, so the elements are not evaluated. Better is:
(de loadFile (X)
(in (list "grep" "-v" "#" X)
...
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=U
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)..
Dear Guys,
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.
Now I want to build a function which takes the path to the file as a
parameter like this:
(setq PathToFile "~/path/to