Ask HN: Writing a Shell in Go, Advice

4 points by hello_computer ↗ HN
I like Go, and I'm thinking about writing a shell in it, but I'm not sure how well Go's runtime will play with fork and exec (probably not well). Any advice?

2 comments

[ 2.1 ms ] story [ 17.0 ms ] thread
I think it does it very well.

Had some recent experience trying to write a shell and have it exposed over the web using websockets.

There are some parts where you wish it behaved like C but it does the job and is more than sufficient for a shell.