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

Re: [[:digit:]] - bashism?



On Thu, 2004-05-27 at 00:25, Stephen Gran wrote:
> Does anyone know the POSIX standard well enough to know if this is a 
> bug in dash, or a bashism?

$ touch a1
$ bash
$ echo a[[:digit:]]
a1
$ dash
$ echo a[[:digit:]]
a[[:digit:]]
$ posh
$ echo a[[:digit:]]
a1

The posh shell is supposed to be strictly POSIX and it accepts
'[[:digit:]]', so I guess this is a bug in dash.
-- 
Thomas Hood



Reply to: