Bug 101263

Summary: Trailing whitespace in hostname -i output
Product: [Retired] Red Hat Linux Reporter: Bill Rugolsky, Jr. <bill>
Component: net-toolsAssignee: Phil Knirsch <pknirsch>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: medium    
Version: 9CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-08-19 12:13:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bill Rugolsky, Jr. 2003-07-30 14:40:57 UTC
Description of problem:
hostname -i produces trailing whitespace, which is simply
annoying when using $(hostname -i) in a script.  I don't see
any system scripts that depend on this behavior.

Version-Release number of selected component (if applicable):
net-tools-1.60-12

How reproducible:
Always

Steps to Reproduce:
1. hostname -i | od -c

Actual results:
0000000   1   9   2   .   1   6   8   .   1   0   .   3   1      \n
0000017


Expected results:
0000000   1   9   2   .   1   6   8   .   1   0   .   3   1  \n
0000016


Additional info:

Comment 1 Phil Knirsch 2003-08-19 12:13:00 UTC
Yeah, looked at the code, definitely buggy. Will fix in next version.

Read ya, Phil