#!/bin/bash
#包含其它文件
#. ./test_data_source.txt
source ./test_data_source.txt
echo "--------------"
echo $$
echo "Language: $1"
echo "URL: $2"
echo "-------------"
func_echo_array hello
test_data_source.txt文件如下
#!/bin/bash
#包含其它文件
#. ./test_data_source.txt
source ./test_data_source.txt
echo "--------------"
echo $$
echo "Language: $1"
echo "URL: $2"
echo "-------------"
func_echo_array hello
test_data_source.txt文件如下