bugGNU recutils - Bugs: bug #62992, recsel fails to find records with...

 
 

bug #62992: recsel fails to find records with multiple values for the same field when match is not in first instance

Submitter:  None
Submitted:  Wed 31 Aug 2022 09:14:32 AM UTC
   
 
Category:  utilities Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Wed 31 Aug 2022 09:14:32 AM UTC, original submission:  

Consider the minimal database of the attached test.rec file.

Steps to reproduce

Run the following recsel expression:

(#Window = 0 || Window = 'w1')

Expected

4 records get selected:

  • object-in-w1
  • object-in-w1-and-w2
  • object-in-w2-and-w1
  • object-in-none


Actual

only 3 records get selected.

  • object-in-w1
  • object-in-w1-and-w2
  • object-in-none


The one that is missing is object-in-w2-and-w1.

However

With the recsel expression

(Window = 'w1')

I do get the expected results:

  • object-in-w1
  • object-in-w1-and-w2
  • object-in-w2-and-w1







Anonymous

 

Attached Files

Attached Files
file #53642:  test.rec added by None (824B - application/octet-stream)

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

History

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2022-08-31 None Attached File- Added test.rec, #53642

Back to the top

Powered by Savane 3.16-ed84.
Corresponding source code