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

 
 

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

Submitter:  None
Submitted:  Sun 01 Aug 2010 01:28:53 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  jemarch
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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 Files:
   
   
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
  • -email is unavailable- added by jemarch (Posted a comment)
  •  

    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.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-08-01 jemarch StatusNone Fixed
    2010-08-01 jemarch Assigned toNone jemarch
        Open/ClosedOpen Closed
    2010-08-01 None Attached File- Added test, #21120
        Attached File- Added test2, #21121

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code