How to invoke env from eLisp and escape the path to the target program properly?
问题 What I'm trying to do is as follows: (let ((pj-path (concat src haxe-project-generator))) (when (file-exists-p pj-path) (shell-command (concat "env " (haxe-build-env-vars <more arguments>) (format "'%s'" pj-path))))) I.e. I want to call a program pj-path in environment populated with some variables. In the line (format "'%s'" pj-path) I tried single and double quotes - but env doesn't do path expansion and if it is quoted, it will treat it as a string, not finding the file. However, if it is