It's possible to use RETRO as a Unix shell, though the experience is quite different than traditional shells. It's not my intent in this to provide a general purpose shell; rather it is to allow for porting shell scripts to RETRO so I can use my own tools as much as possible.
I begin by defining some words for dealing with pipes.
These make it easier to construct the pipelines. E.g.,
'date_-u_"+%Y%m%d" pipe> 'sed_s/20// >pipe> s:put nl
I can implement some shell wrapper words (using an sh: namespace here to group them):
Wrapping the find tool is a little more involved. I decided to have this generate a tab separated value string, which I then tokenize into an array.
This will require that the temporary string length be at least as big as the returned length.
I don't know how to do a direct analog to xargs. This should be similar in functionality.