[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] Bug in 'hostname' version 1.9.4 (Arch linux)

From: Terje Strand
Subject: [bug-inetutils] Bug in 'hostname' version 1.9.4 (Arch linux)
Date: Thu, 28 Apr 2016 12:44:54 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0


During scripting I use the command 'hostname -i' to return the ip address of the hostname. All is good, the ip value is what I expect, _except_ for a trailing space. I see no need for a trailing space as it complicates the script considerably and is inconsistently with other similar commands.

address@hidden ~]$ hostname -i | xxd
00000000: 3139 322e 3136 382e 322e 3133 3920 0a .
(Note the '20' hex (space) prior to newline).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]