bash会自动执行当前目录下的程序了?!
发表于 : 2010-05-03 0:58
bash4.1.5
PATH变量里没有加 . 也没有加当前路径,目录下的程序可以直接执行, 不用 ./xxx 这样执行了
奇怪
PATH变量里没有加 . 也没有加当前路径,目录下的程序可以直接执行, 不用 ./xxx 这样执行了
奇怪
代码: 全选
$ bash --version
GNU bash, version 4.1.5(2)-release (i686-pc-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ 1.sh
bash: 1.sh: command not found