SHELL编写函数有关问题,为什么只能调用一次

SHELL编写函数问题,为什么只能调用一次?#!/bin/bashfunction show(){echo `date`echo $0 - $1 - $2 - $3

SHELL编写函数问题,为什么只能调用一次?
#!/bin/bash
function show()
{
  echo `date`
  echo "$0 - $1 - $2 - $3"
}
show 1 2 3
show 10 20 30
show 100 200 300
exit 0

function.sh - 100 - 200 - 300

这里怎么说也是调用了三次,为什么就显示一次出来?


[解决办法]

Assembly code
dos2unix test.sh./test.sh