Writing my own shell… stuck on pipes?

前端 未结 9 646
攒了一身酷
攒了一身酷 2020-12-30 03:41

For the past few days I have been attempting to write my own shell implementation but I seem to have gotten stuck on getting pipes to work properly. I am able to parse a li

9条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-30 03:58

    Here's a tutorial on UNIX pipes, specifically about how to construct piplines in a shell-like architecture:

    http://www.cse.ohio-state.edu/~mamrak/CIS762/pipes_lab_notes.html

    Not much fully-written code, but it describes the concepts pretty well.

    You could also download source code for virtually any shell, such as bash, tcsh, zsh, etc.

提交回复
热议问题