5 ms·
I think this is not a general shell like bash or csh, more of a custom REPL for some specific set of commands. A critical feature of every other shell is how t
by omoikane 3y ago
I think this is not a general shell like bash or csh, more of a custom REPL for some specific set of commands. A critical feature of every other shell is how they handle pipes, and this one doesn't seem to have gotten that far yet.
Perhaps it would have been better to wrap the limited shell functionalities in in gem instead, and run that inside `irb`. Currently the majority of the lines appears to be reimplementing a REPL, but those would come for free with `irb`.
- geir_isene 3y agoNope. It handles pipes and everything else as it shells out on system()
- omoikane 3y agoBut the outputs of those system() calls aren't accessible to rsh, unlike other shells where I might be able to do VARIABLE=$(command). I was looking for something more like IO.popen() and rsh does not seem to have those.
- deleted 3y ago[deleted]