1
vote
Accepted
How to use a variable for an output :file path for call-process
You should use Backquote
(call-process "/bin/ls" nil `(:file ,path-to-output-test))
or list directly
(call-process "/bin/ls" nil (list :file path-to-output-test))
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
call-process × 19process × 7
shell-command × 4
subprocess × 4
spacemacs × 1
buffers × 1
tramp × 1
shell × 1
git × 1
term × 1
variables × 1
copy-paste × 1
async × 1
newlines × 1
environment × 1
command-line-arguments × 1
focus × 1
filenames × 1
backquote × 1
pipe × 1