代码之家  ›  专栏  ›  技术社区  ›  avpaderno

为Mac OS X创建bash的替代方案

  •  0
  • avpaderno  · 技术社区  · 15 年前

    shell是普通的cli应用程序,还是与接受标准输入的输入并在标准输出上输出结果的应用程序不同?

    2 回复  |  直到 15 年前
        1
  •  2
  •   D.Shawley    15 年前

    shell读取标准输入,根据需要写入标准输出/错误,并执行其他程序。如果你对写一本书的内容感兴趣,我建议你阅读 "UNIX Systems Programming" by Kay Robbins and Steve Robbins . 我没读过这个版本,原版的名字是 “实用的Unix编程” . It does contain sections devoted to process management that include writing a very basic shell. If you haven't read "Advanced Programming in the UNIX Environment" by Stevens 我建议你也读一下。

        2
  •  1
  •   Ignacio Vazquez-Abrams    15 年前

    不,shell只是从stdin读取并输出到stdout。显然它 做的不止这些,但这是最基本的。