Emacs lisp - how to send `&&` to shell?
I want to combine some shell commands with &&
- for example
wget -c http://repository/file.tar.gz && tar -xzvf file.tar.gz && rm file.tar.gz
Normally I would use start-process
, but this function seems to get confused with &&
. I can just run three commands in sequence, but in this case, as with many others, I want to make sure the first command is not interrupted in error before the second command is executed, etc.
The Python function subprocess.call
has an argument shell=True
by which you can just send the entire string - does such a function exist in emacs lisp, or should I be looking for another workaround in this case?
source to share