脚本中p
发布时间: 2025-06-29 10:35:55
‘壹’ shell脚本的read -p写法
关于第一个问题:-p: is not an identifier
有可能是因为你的PATH的设定。
你可以在第一个read之前加一行
type read
看看这个read是从哪里来的
同时直接在你的Unix prompt里也输入type read看看结果
应该得到的是同样的答案(read is a shell builtin)
Good Luck!
热点内容
‘壹’ shell脚本的read -p写法
关于第一个问题:-p: is not an identifier
有可能是因为你的PATH的设定。
你可以在第一个read之前加一行
type read
看看这个read是从哪里来的
同时直接在你的Unix prompt里也输入type read看看结果
应该得到的是同样的答案(read is a shell builtin)
Good Luck!