floating-point error in "pr -n" command

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Issue

  • The error occurs, if 32 or more larger number is specified for DIGITS that is a part of SYNOPSIS of "-n" option.
(SYSNOPSIS of "-n" option)-----------------------
 -n[SEP[DIGITS]], --number-lines[=SEP[DIGITS]]
  number lines, use DIGITS (5) digits, then SEP (TAB), 
   default counting startswith 1st line of input file
----------------------------------------------

# pr -n32 testfile
2012-10-16 09:43             testfile             Page 1
Floating point exception (core dumped)

Resolution

We are working this issue and will be fixed.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments