packages/yarnpkg-shell/README.md
@yarnpkg/shellA JavaScript implementation of a bash-like shell (we use it in Yarn 2 to provide cross-platform scripting). This package exposes an API that abstracts both the parser and the interpreter; should you only need the parser you can check out @yarnpkg/parsers, but you probably won't need it.
import {execute} from '@yarnpkg/shell';
process.exitCode = await execute(`ls "$0" | wc -l`, [process.cwd()]);
ls *.txt)mv build/{index.js,index.build.js}, echo {foo,bar}, FOO=a,b echo {$FOO,x})