bugGNU recutils - Bugs: bug #30618, -P/-p for field names containing...

 
 

bug #30618: -P/-p for field names containing dahes.

Submitted by:  None
Submitted on:  Sun 01 Aug 2010 01:28:53 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Jose E. Marchesi <jemarch>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 01 Aug 2010 08:59:40 PM UTC, comment #3:

Thanks for the very fast fixes :)
Suites my thesis well... ;)

Anonymous
Sun 01 Aug 2010 07:23:43 PM UTC, comment #2:

Hello.

The issues you are reporting are now fixed in the git master:

- recsel: avoid a segmentation fault while printing record
descriptors.

- recsel: allow dashes in field names when checking the field
expressions.

Many thanks for the report! :)

Jose E. Marchesi <jemarch>
Project AdministratorIn charge of this item.
Sun 01 Aug 2010 02:10:56 PM UTC, comment #1:

The files I uploaded show that an error message is missing:


$ ./utils/recsel -d -P timems test2
Segmentation fault


I thought that -d would prefix the field name, but, after reading --help again, it gives the record's description, which is obviouly missing in my files.

Regards,
Kai.

Anonymous
Sun 01 Aug 2010 01:28:53 PM UTC, original submission:

Attached are two test files with the same content but one field name changed.

test contains:
...
time-ms: ...

while test2 contains:
...
timems: ...

I tried to get the runtimes of a program in certain configurations like this:


$ ./utils/recsel -e "bvh = bvh" -P "timems" test2
45

10


$ ./utils/recsel -e "bvh = bvh" -P "time-ms" test
error: invalid field expression in -p: No match.


$ ./utils/recsel test
works fine.


Hope this isn't me being stupid :)
Cheers,
Kai.

ps: the file data is fictous, don't mind the numbers ;)

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #21120:  test added by None (171B - application/octet-stream)
file #21121:  test2 added by None (169B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jemarch (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 01 Aug 2010 10:43:02 PM UTCjemarchStatusNone=>Fixed
    Sun 01 Aug 2010 07:23:43 PM UTCjemarchAssigned toNone=>jemarch
      Open/ClosedOpen=>Closed
    Sun 01 Aug 2010 01:28:53 PM UTCNoneAttached File-=>Added test, #21120
      Attached File-=>Added test2, #21121

    Back to the top


    Powered by Savane 3.1-cleanup1