Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--IDYEmSnFhs3mNXr+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jul 13, 2010 at 08:59:54AM +0800, Aiza wrote:
>=20
> This is real close but it allows a numeric value through as valid which=
=20
> is not a valid condition. The $size value has to be suffixed with g or m=
=20
> to be valid. A numeric value only or a numeric value suffixed with=20
> 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.

--=20
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

--IDYEmSnFhs3mNXr+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAkw8/ScACgkQ9mn/Pj01uKWo0wCeJwzUJNWpMx99loaM4k/TncHa
bW8An2USLGN1tHrUT0U7lQ3TsGjnDks6
=2/rd
-----END PGP SIGNATURE-----

--IDYEmSnFhs3mNXr+--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100713235623.GD35912>