在 Bash 函数中,local item="$1" 的作用是什么?
local item="$1"
将函数的第一个参数存储到名为 item 的局部变量中。
item
始终在函数内部使用 read 提示输入。
read
只能检查硬编码的 test_file.txt 路径。
test_file.txt
使用 $0 作为 item 路径。
$0