zsh shell问题,特别是当我试图获得输出时

zsh shell问题,特别是当我试图获得输出时,shell,zsh,Shell,Zsh,ks@USERDesktop%./script.sh /script.sh:read:18:-p:no协进程 你好,很高兴认识你 read -p "Enter your name: " NAME echo "Hello $NAME, nice to meet you".``` In terminal: 在ZSH-p中,与Bash中的提示不同。请参见manzshbuiltins: [picture of the problem ][1] [1

ks@USERDesktop%./script.sh /script.sh:read:18:-p:no协进程 你好,很高兴认识你

read -p "Enter your name: " NAME
echo "Hello $NAME, nice to meet you".```


In terminal:

在ZSH
-p
中,与Bash中的提示不同。请参见
manzshbuiltins


[picture of the problem ][1]


  [1]: https://i.stack.imgur.com/ZpVri.png
要获取ZSH实现的
读取的提示,请执行以下操作:

   read [ -rszpqAclneE ] [ -t [ num ] ] [ -k [ num ] ] [ -d delim ]
   (...)
   -p     Input is read from the coprocess.

在ZSH
-p
中,与Bash中的提示不同。请参见
manzshbuiltins


[picture of the problem ][1]


  [1]: https://i.stack.imgur.com/ZpVri.png
要获取ZSH实现的
读取的提示,请执行以下操作:

   read [ -rszpqAclneE ] [ -t [ num ] ] [ -k [ num ] ] [ -d delim ]
   (...)
   -p     Input is read from the coprocess.