Re: [Bashburn-info] Pressing any key in menu balks
Brought to you by:
bashburn
|
From: Nick W. <ni...@uk...> - 2008-08-30 20:45:16
|
On Sat, 30 Aug 2008 20:36:47 +0100 Nick Warne <ni...@uk...> wrote: > On Sat, 30 Aug 2008 20:11:31 +0100 > Nick Warne <ni...@uk...> wrote: > > > > > Thinking, perhaps what I done _is_ the right thing i.e. sanitise > > > the input before deliberating what needs to be done later in the > > > code. > > > > > > I guess it could be more elegant though... > > > > > > Nick > > > > OK, I think I found it. I liked the warning about none-digit > > entered > > - so sanitise the cloned $VAR! Seems to work good now. > > Oh No it doesn't... just entering '7a', or 'shdgshjh8' e.g. fubars > that. > > This is a bit of a conundrum, indeed. > > Rest time... Until now. Now is rest time. Latest commit. $VAR1 $VAR2. Strip non-DIGITS from $VAR1 (now contains only digits) and compare with original $VAR2. If they are not equal (i.e. $VAR2 contains alpha)... Nick -- Free Software Foundation Associate Member 5508 |