Date: Tue, 13 Jul 2010 17:56:23 -0600 From: Chad Perrin <perrin@apotheon.com> To: "questions@freebsd.org" <questions@freebsd.org> Subject: Re: .sh check for sufix g or m on size field Message-ID: <20100713235623.GD35912@guilt.hydra> In-Reply-To: <4C3BBA8A.3020305@comclark.com> References: <4C3B26B4.1000208@comclark.com> <867hl0ems5.fsf@gmail.com> <4C3BBA8A.3020305@comclark.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Tue, Jul 13, 2010 at 08:59:54AM +0800, Aiza wrote: > > This is real close but it allows a numeric value through as valid which > is not a valid condition. The $size value has to be suffixed with g or m > to be valid. A numeric value only or a numeric value suffixed with > anything else than m or g is invalid. What exactly is your desired behavior for input containing something other than a series of numbers and either a 'g' or an 'm'? What *should* happen if you get '25gm' as input, since the preceding example was not sufficient for your needs? Please clarify your requirements. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkw8/ScACgkQ9mn/Pj01uKWo0wCeJwzUJNWpMx99loaM4k/TncHa bW8An2USLGN1tHrUT0U7lQ3TsGjnDks6 =2/rd -----END PGP SIGNATURE-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100713235623.GD35912>
