[ksh93-integration-discuss] Re: [ast-users] Concatenation of pattern
Josh Hurst
joshhurst at gmail.com
Sun Nov 5 11:16:51 PST 2006
On 11/5/06, David Korn <dgk at research.att.com> wrote:
>
> > Can I concatenate shell pattern and ~(E) pattern in one [[ str == pat
> > ]] expression?
> > --
> >
>
> Yes, and with ksh93s, you can do
> [[ str =~ re_pat ]]
> which is equivalent to
> [[ str == ~(E)re_pat ]]
How can I concatenate s_pa='[abc]' and re_pat='(foo|bar).*' to one
pattern? [ str == [abc]~(E)(foo|bar).* does not work.
--
Josh
More information about the ksh93-integration-discuss
mailing list