shelljs-transpiler icon indicating copy to clipboard operation
shelljs-transpiler copied to clipboard

exec with variables as arguments should still work

Open nfischer opened this issue 9 years ago • 0 comments

Related to #23, CC @mikeerickson

The translator currently doesn't properly handle exec commands that expand variables. Something like:

branchName=master
git checkout $branchName
printf $PATH

should translate into:

var branchName = master
exec('git checkout ' + branchName);
exec('printf ' + env.PATH); // or exec('printf $PATH');

nfischer avatar Aug 25 '16 04:08 nfischer