Bash 扩展 glob 模式否定在参数替换中不起作用
作者:XDR 提问时间:9/4/2023
Bash 3.2.57(在 macOS 12.6.8 上)扩展的 glob 模式否定在参数替换中不起作用: $ shopt -s extglob $ s=abc $ echo ${s##!(a)*}...
extglob 问答列表
作者:XDR 提问时间:9/4/2023
Bash 3.2.57(在 macOS 12.6.8 上)扩展的 glob 模式否定在参数替换中不起作用: $ shopt -s extglob $ s=abc $ echo ${s##!(a)*}...