bash - How do you source a shell script with dart.io in the current process? -
process.run
(and variants) complain using '.' , 'source' commands. there built-in way run methods or there particular executable can try calling mimic bash's source command?
all these commands have runinshell
argument. if doesn't fix use shell -c ". xxx"
if process.run('. somescript.sh, runinshell: true);
, process.run('someexecutable');
gained nothing because when first call ends created environment dies it. assume want
process.run('. somescript.sh && someexecutable', runinshell: true);
Comments
Post a Comment