You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just assume that every unix program needs it's own binding
Yeah, the intention is that Mash should provide built-in support for most standard Unix functionality, including programs like dd, although it might end up with a different interface than the traditional command (dd actually being a good example that it has different argument convention to most programs).
Where do add a binding and how do i write one?
At the moment, for standard lib functions, they are written in Scala. There's an example binding to open in src/main/scala/com/github/mdr/mash/ns/os/OpenFunction.scala
You could also write a dd binding in Mash, as a user function. A simple one might look like:
(And if you just want to run the dd executable, you can also do that using the "mish" subsyntax, e.g. by prepending an ! at the start: !dd if=/dev/urandom of=myrandom bs=100 count=1)
I just assume that every unix program needs it's own binding. Where do add a binding and how do i write one?
Cheers!
The text was updated successfully, but these errors were encountered: