Is there any way to make the script:
diff <(echo 'hello') <(echo 'hello-2')
work, as currently it fails with error in Dart when run using Process.run
or Process.start
:
syntax error near unexpected token `('
I tried to drill down on it and found out that since process substitution is not available when running the script through Process.run
or Process.start
, hence it's failing. So, is there any way to make it work?
I found out that we need to use set +o posix
to make process substitution available if it's not, but I don't know how to do it in Dart.