Pat Gunn (dachte) wrote,
Pat Gunn
dachte

A Fun Unix Problem

Here's a fun (Unix) systems problem that popped into my head a few minutes ago:If you wanted to make a Unix shell that maintained the POSIX Shell semantics and had all the functionality of bash (with the same interface), but neither creates subshells (except for fork/exec of an external program) nor needs a separate instance for each login session or shell the user (directly) launches:

  • How would you do it?
  • What are the limitations of your approach?
  • Are there any advantages to this approach without changing the external behaviour?
  • Does it open the door to useful changes to external behaviour?
  • What are the hardest challenges you imagine dealing with while designing/implementing this?
  • What software would you like to review for ideas when making design/implementation choices for this? Are there external libraries you'd like to use that would make some of this easier?

I suspect this would be a good interview question for a systems geek. (And no, I've never been asked anything like this in any interview, nor does this relate to anything for work, as I am currently mostly unemployed)

(Crossposting this to G+, because some people I'm only connected to there probably appreciate the neat problem)

Subscribe

  • Typing in Colours

    (Cross-posted to G+, but it's more of a definitive statement of views so it goes here too) A recent instance of 「Wasted Talent」: here I'm not…

  • Loyalty

    This is meant to address three ideas: Don't blame the victim If you care for me, you'd support me unconditionally Safe zonesAnd to be a topic in…

  • What Do We Owe Each Other?

    One of the central questions in political philosophy, or perhaps one of the most intuitive initial framings, is "what do we owe each other?". I…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments