This PR changes the way in which commands in a shell task are executed. It runs a cmd command in a shell task by invoking $SHELL -c cmd. This is also how shell commands were executed in the python implementation.
Pros of using $SHELL -c cmd to execute a cmd:
cmd can be a complex shell commands with &&, || or pipe. This fixes #98.
Expansion of ~ and environment variables are performed the same way as regular shell commands.
This PR changes the way in which commands in a
shell
task are executed. It runs acmd
command in ashell
task by invoking$SHELL -c cmd
. This is also howshell
commands were executed in the python implementation.Pros of using
$SHELL -c cmd
to execute acmd
:cmd
can be a complex shell commands with&&
,||
or pipe. This fixes #98.~
and environment variables are performed the same way as regular shell commands.