Bug 101263 - Trailing whitespace in hostname -i output
Trailing whitespace in hostname -i output
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: net-tools (Show other bugs)
9
All Linux
medium Severity low
: ---
: ---
Assigned To: Phil Knirsch
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-07-30 10:40 EDT by Bill Rugolsky, Jr.
Modified: 2015-03-04 20:12 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-08-19 08:13:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Bill Rugolsky, Jr. 2003-07-30 10:40:57 EDT
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 08:13:00 EDT
Yeah, looked at the code, definitely buggy. Will fix in next version.

Read ya, Phil

Note You need to log in before you can comment on or make changes to this bug.