在提示符中使用 cowsay 函数时,我想在提示符后换行:
read -p "$(cowsay "do you know this word?") \n" answer
这个问题有多种答案:
1) https://stackoverflow.com/questions/4296108/how-do-i-add-a-line-break-for-read-command/4296147
2) https://stackoverflow.com/questions/12741529/how-to-break-a-line-add-a-newline-in-read-p-in-bash
但是答案使用''
符号,它不能解析cowsay
命令