bug-recutils
[Top][All Lists]
Advanced

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

[bug-recutils] recsel --uniq not working


From: Leo Famulari
Subject: [bug-recutils] recsel --uniq not working
Date: Tue, 29 Sep 2015 23:10:44 -0400

Hello,

I am having trouble getting `recsel --uniq` to work. What follows is
some test data that can be used to reproduce the problem.

I am using recsel (GNU recutils) 1.7.

Consider the following small recfile. You will notice that the first two
records share the same value for the field 'model_number'.
%rec: machine
%key: id
%auto: id
%type: id int
%allowed: location model_number description

id: 0
description: box
model_number: 1
location: here

id: 1
description: another box
model_number: 1
location: there

id: 2
description: bag
model_number: 42
location: out there

Here is the output when I use `recsel --uniq` on the recfile:
$ recsel -t machine -p model_number --uniq data.rec 
model_number: 1

model_number: 1

model_number: 42

I would expect the output to be like this:
model_number: 1

model_number: 42

Is this a bug or am I doing it wrong?



reply via email to

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