无法启用globstar在Bash中4

问题描述:

我把失败下面我的.bashrc

I put the following unsuccessfully to my .bashrc

shopt -s globstar

我试图测试在行动命令由

I am trying to test the command in action by

ls **/*.c

和通过比较

ls */*/*.c

你怎么可以启用globstar Bash中4?

嗯。 禁用了javascript -s globstar 应该工作。

要调试,请确保您正在运行击4:

To debug, make sure you are running Bash 4:

$SHELL --version

然后检查的设置 globstar

shopt globstar

如果它没有设置,尝试手动设置的:

If it is unset, try setting it manually:

shopt -s globstar

现在是否正常工作。如果是这样,你可能想看看为什么你的的.bashrc 不工作。你记得您重新启动外壳编辑的.bashrc 之后,或加载它。的.bashrc

Now see if that works. If it does, you might want to look into why your .bashrc isn't working. Did you remember to restart you shell after editing your .bashrc, or load it with . .bashrc?