bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFE: allow double quotes to group multi-words & be treated as?1?arg,


From: clemens fischer
Subject: Re: RFE: allow double quotes to group multi-words & be treated as?1?arg, w/DQ's stripped off -- including RH =~
Date: Fri, 06 Aug 2010 21:22:38 +0200
User-agent: tin/1.9.6-20100313 ("Lochruan") (UNIX) (Linux/2.6.34.2-spott (i686))

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

[Prev in Thread] Current Thread [Next in Thread]