bash通配符无法使用?搜到的"set -o noglob" 和"set +o noglob"无效
奇怪的是在特定目录下才出现通配符无效的情况
那个目录是我用adduser username 刚添加的 home目录
代码: 全选
echo *
但是cd到其它目录就有正常的内容了
shell环境是 sudo su 进入的root
仔细观察发现是该用户home目录下的一些文件没有被匹配到?
代码: 全选
root@debian:/home/test# ls
testd
root@debian:/home/test# ls
testd
root@debian:/home/test# ls -a
. .. .bash_history .lesshst testd .Xauthority
root@debian:/home/test# echo *
testd
testd是手动创建的测试目录