Greg Wooledge wrote:

> In this particular case, I would use a glob rather than an ERE,
> because "h?" is much simpler than "^h.$".

Besides, bash's extended globs provide everything ERE's provide.  I use
the idiom:

    shopt -s extglob
    # for example, to check for numbers
    case "-${something}" in -+([[:digit:]])) echo "number";; esac

all the time.


clemens

Reply via email to