Bug#405772: [Pkg-ltsp-devel] Bug#405772: ltsp-client: also fix SWAP related booleans

Vagrant Cascadian vagrant at freegeek.org
Sun Jan 7 18:04:39 UTC 2007


On Sun, Jan 07, 2007 at 05:45:12PM +0100, Petter Reinholdtsen wrote:
> [Vagrant Cascadian]
> > +get_boolean(){
> > +    case "$(echo $1 | tr 'A-Z' 'a-z')" in
> > +       true|y|yes) return 0 ;; 
> > +       *) return 1 ;; 
> > +    esac
> > +}
> 
> I'm not sure if this is a good function name for that operation.  What
> about boolean_is_true() or something like that.  

sure, "booleant_is_true" sounds like a good name to me.

i wasn't happy with the name either, though i was sort of following
ldm's "get_config_bool" function.  though if i was really trying to do
that, i should have just called it "get_config_bool".

i don't care too much what to call it, i just want it fixed. :)

live well,
  vagrant




More information about the Pkg-ltsp-devel mailing list