[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9023: pr command does not honor -f or --form-feed option
From: |
Conklin,Paul W. |
Subject: |
bug#9023: pr command does not honor -f or --form-feed option |
Date: |
Thu, 7 Jul 2011 17:45:01 -0500 |
I think that I have found a bug with the pr command
Version Info
pr 5.97 October 2008 PR(1)
root:address@hidden:/
# rpm -qa --filesbypkg | grep -w /usr/bin/pr
coreutils /usr/bin/pr
root:address@hidden:/
# rpm -q coreutils
coreutils-5.97-19.el5
test.txt is just a 66 line file with the numbers 1-66, one per line
pr -t -f -l33 -w80 test.txt > withf.txt
pr -t -l33 -w80 test.txt > withof.txt
diff withf.txt withof.txt
In AIX
address@hidden:/>
# pr -t -f -l33 -w80 test.txt > withf.txt
address@hidden:/>
# pr -t -l33 -w80 test.txt > withof.txt
address@hidden:/>
# diff withf.txt withof.txt
diff: 0653-827 Missing newline at the end of file withf.txt.
34c34
<
34
---
> 34
67d66
<
address@hidden:/>
# cat withf.txt | wc -c
191
address@hidden:/>
# cat withof.txt | wc -c
189
in LINUX
root:address@hidden:/
# pr -t -f -l33 -w80 test.txt > withf.txt
root:address@hidden:/
# pr -t -l33 -w80 test.txt > withof.txt
root:address@hidden:/
# diff withf.txt withof.txt
root:address@hidden:/
# cat withf.txt | wc -c
189
root:address@hidden:/
# cat withof.txt | wc -c
189
root:address@hidden:/
Paul W. Conklin | Sr Team Lead | Cerner Corporation | 816.201.7128 | Cell:
816.885.5691 | address@hidden | www.cerner.com
----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from
Cerner Corporation and are intended only for the addressee. The information
contained in this message is confidential and may constitute inside or
non-public information under international, federal, or state securities laws.
Unauthorized forwarding, printing, copying, distribution, or use of such
information is strictly prohibited and may be unlawful. If you are not the
addressee, please promptly delete this message and notify the sender of the
delivery error by e-mail or you may call Cerner's corporate offices in Kansas
City, Missouri, U.S.A at (+1) (816)221-1024.
- bug#9023: pr command does not honor -f or --form-feed option,
Conklin,Paul W. <=