Date: Fri, 25 Jun 2010 05:17:17 +0800 From: Aiza <aiza21@comclark.com> To: freebsd-questions@freebsd.org Subject: Re: .sh check for numeric content Message-ID: <4C23CB5D.1030902@comclark.com> In-Reply-To: <20100624123815.01307f51@scorpio> References: <4C22B3D7.6070102@comclark.com> <20100624033257.2D074BEA6@kev.msw.wpafb.af.mil> <20100624050832.06ef2a46@scorpio> <20100624161439.GD557@libertas.local.camdensoftware.com> <20100624123815.01307f51@scorpio>
next in thread | previous in thread | raw e-mail | index | archive | help
Jerry wrote: > On Thu, 24 Jun 2010 09:14:39 -0700 > Chip Camden <sterling@camdensoftware.com> articulated: > > [snip] > >> That [[:digit:]] pattern only works if your shell supports POSIX >> character classes in the case statement. > > I use Bash myself. I am not sure what other shells support this > context. In any case, I simply supplied a possible solution. I leave it > up to the OP to determine if it is suitable for his/her environment. > The subject clearly tells you what shell the o/p is using.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C23CB5D.1030902>