3 ms·
Rash (https://rash-lang.org/ https://rash-lang.org/) and Oil (https://www.oilshell.org/release/latest/doc/ysh-tour.html https://www.oilshell.org/release/latest/
by klibertp 2y ago
Rash (https://rash-lang.org/ https://rash-lang.org/) and Oil (https://www.oilshell.org/release/latest/doc/ysh-tour.html https://www.oilshell.org/release/latest/doc/ysh-tour.html) come to mind. Xonsh, too, as mentioned. Powershell too.
Most high-level languages have packages that implement DSLs for running and connecting subprocesses. Python has both `subprocess` in stdlib and things like plumbum (https://plumbum.readthedocs.io/en/latest/index.html https://plumbum.readthedocs.io/en/latest/index.html) or fabric as 3rd party packages. Scala has a little DSL ("echo 1" #| "cat" !) for this in stdlib. How lightweight the syntax is depends on how DSL-friendly the language is, so things like Ruby or Raku might be your best bets.
- liampulles 2y agoOil/ysh looks very much like what I would like - thanks!