无法启用globstar在Bash中4 [英] Unable to enable globstar in Bash 4

查看:175
本文介绍了无法启用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?

这篇关于无法启用globstar在Bash中4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆