V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Trim21
V2EX  ›  问与答

为啥 glob 能匹配到上级目录的文件?

  •  
  •   Trim21 · 2021-05-27 03:18:19 +08:00 · 450 次点击
    这是一个创建于 1078 天前的主题,其中的信息可能已经有所发展或是发生改变。
    ~/proj/test (master) # echo !(node_modules)**/*.ts
    ../a.ts
    
    ~/proj/test (master) # shopt|grep glob
    dotglob         off
    extglob         on
    failglob        off
    globasciiranges off
    globstar        on
    nocaseglob      off
    nullglob        off
    

    so 搜到了说是可能设置了GLOBIGNORE,但我试了一下这个变量也是空的

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2295 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 16:13 · PVG 00:13 · LAX 09:13 · JFK 12:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.