作为子进程的运行的管道,不能够改变脚本的变量. 1 variable="initial_value" 2 echo "new_value" | read variable 3 echo "variable = $variable" #variable = initial_value