Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionDimitar Yordanov
2011-11-24 15:46:04 UTC
Description of problem:
The output from command "yum list available" is different when it is passed to pipe or redirected to a file.
Version-Release number of selected component (if applicable):
RHEL5/6
yum-3.2.29-17
How reproducible:
100%
Steps to Reproduce:
1. Create a custom channel to Satellite
custom_chann_sync_repo_thu24nov2011_10_16_39_28628
2. Register the server to Satellite with base channel
custom_chann_sync_repo_thu24nov2011_10_16_39_28628
3.yum clean all
4.yum list available
Actual results:
The following text is displayed in one line
test-regular-Test_RPM_0.x86_64 0.1-1 custom_chann_sync_repo_thu24nov2011_10_16_39_28628
If you pass the output to pipe
#yum list available | grep custom_chann_sync_repo_thu24nov2011_10_16_39_28628
0.1-1 custom_chann_sync_repo_thu24nov2011_10_16_39_28628
if you redirected to a file:
# yum list available > temp.txt
The result are broken in more lines.
Expected results:
The number of lines is alway the same, regardless if the output is displayed to the console or redirected.
The current behavior makes to processing of the output very complicated.
Additional info:
> The number of lines is alway the same, regardless if the output is displayed
> to the console or redirected.
Make your terminal 80 characters wide, as is the one true way, and this will be true.
> The current behavior makes to processing of the output very complicated.
Don't do that then, we supply an API and repoquery/etc. so you can do things like that.
Description of problem: The output from command "yum list available" is different when it is passed to pipe or redirected to a file. Version-Release number of selected component (if applicable): RHEL5/6 yum-3.2.29-17 How reproducible: 100% Steps to Reproduce: 1. Create a custom channel to Satellite custom_chann_sync_repo_thu24nov2011_10_16_39_28628 2. Register the server to Satellite with base channel custom_chann_sync_repo_thu24nov2011_10_16_39_28628 3.yum clean all 4.yum list available Actual results: The following text is displayed in one line test-regular-Test_RPM_0.x86_64 0.1-1 custom_chann_sync_repo_thu24nov2011_10_16_39_28628 If you pass the output to pipe #yum list available | grep custom_chann_sync_repo_thu24nov2011_10_16_39_28628 0.1-1 custom_chann_sync_repo_thu24nov2011_10_16_39_28628 if you redirected to a file: # yum list available > temp.txt The result are broken in more lines. Expected results: The number of lines is alway the same, regardless if the output is displayed to the console or redirected. The current behavior makes to processing of the output very complicated. Additional info: