
linux – tee命令无法正常工作(带有read和echo)
脚本和输出如下: 脚本: #!/bin/bash#tee_with_read.shfunction tee_test(){ echo ***This should be printed first but it is not*** read -r -p Enter input : echo You entered : $REPLY}tee_test
脚本和输出如下: 脚本: #!/bin/bash#tee_with_read.shfunction tee_test(){ echo ***This should be printed first but it is not*** read -r -p Enter input : echo You entered : $REPLY}tee_test