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

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



Hi,

On Wed, May 26, 2004 at 06:25:41PM -0400, Stephen Gran wrote:
> Hello all,
> 
> Looking for some advice.  Recently a bug was filed on one of my packages
> that really had me pulling my hair out - it turned out to be that the
> test to make sure debconf input was numeric was failing because I use
> [[:digit:]]* and the user's shell was dash.  I've checked the scripts
> with checkbashisms, and it doesn't think that that's a bash specific
> thing, but perhaps they missed it.
> 
> Looking here:
> http://www.opengroup.org/onlinepubs/009695399/toc.htm , it looks like
> this is a POSIX expression, so I think I'm right, but I want to be sure
> before I just reassign the bug to dash.
> 
> Does anyone know the POSIX standard well enough to know if this is a 
> bug in dash, or a bashism?

Since POSIX = SUSv3, and since SUSv3 specifies
  http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_13_01
I think this is a bug in dash.


Regards,

Nicolas



Reply to: