Chinaunix

标题: 请教一个ksh相关的问题(cat |&) [打印本页]

作者: zy86416779    时间: 2016-04-18 15:19
标题: 请教一个ksh相关的问题(cat |&)
hi,大家好
请教一下,关于ksh的问题。在网上没有找到相应的解释,自己也思考了很久,还是不得其解。代码如下
  1. cat |&
  2. print -p "x"
复制代码
不理解上面两行的含义。我查找了print的man page,不清楚为啥要把x给到cat。
-p          Cause the arguments to be written onto the  pipe
              of  the process spawned with |& instead of stan-
              dard output.

谢谢大家了。
作者: 99超人    时间: 2016-04-18 17:37
提示: 作者被禁止或删除 内容自动屏蔽
作者: zy86416779    时间: 2016-04-19 08:37
回复 2# 99超人
谢谢

   




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2