楼上得很有意思。是不是二楼的,在练习英文翻译哟:)
不过如楼上,./没有任何运行的意思。只是一个路径。如果你把你的script路径放入path,你不用./一样运行的
Why not simply invoke the script with scriptname? If the directory you are in ($PWD) is where scriptname is located, why doesn't this work? This fails because, for security reasons, the current directory, "." is not included in a user's $PATH. It is therefore necessary to explicitly invoke the script in the current directory with a ./scriptname.