[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-recutils] question about bool types

From: Jose E. Marchesi
Subject: Re: [bug-recutils] question about bool types
Date: Thu, 01 Aug 2013 15:02:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)


    I'm playing around with recutils and added a bool type to my %rec
    definition.  I understand I can use 0/1, yes/no, or true/false in the
    I'm a little stumped on how I can select records that are either true
    or false in the specified field.  Doing
       recsel -e 'BoolField = 0' file.rec
    only returns the records where 'BoolField' is actually set to 0, and
    not 'no' or 'false'.  Am I missing something here or do I have to
    query all three of 0, no, and false?
The second.  Unfortunately at this moment the evaluation of the
selection expressions is totally unaware of the field types.

This will change at some point, but until then I would suggest to create
your own boolean type using %type, using a single pair values
representing true and false.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]