我写了一个脚本test.sh,内容如下:#!/bin/shread -p "Enter the first interger:" FIRSTecho $FIRST
我用source test.sh没有问题,但是用sh test.sh时 read -p就会报错,请问这个是什么原因?谢谢了~
试试sh -x test.sh