Here’s the translation of the Go code to Fortress, formatted in Markdown suitable for Hugo:
In this example, we’ll look at executing external processes in Fortress. Sometimes we want to completely replace the current Fortress process with another one. To do this, we’ll use Fortress’s implementation of the classic exec function.
When we run our program, it is replaced by ls.
Note that Fortress, like many high-level languages, does not offer a classic Unix fork function. Usually this isn’t an issue though, since starting threads, spawning processes, and exec’ing processes covers most use cases for fork.