hostname command

Charles Wilson cygwin@cwilson.fastmail.fm
Mon Oct 11 16:01:00 GMT 2010


On 10/11/2010 10:27 AM, Eric Blake wrote:
>> PS. the builtin hostname in bash just ignore options. I am referring
>> to /bin/hostname.exe.
> 
> Bash does not have a builtin hostname.  When you type hostname in bash,
> you ARE using /bin/hostname, which is currently from coreutils.

Also, you need to be sure about your PATH settings. I've been bitten
several times when ClearCase's installation directory was "promoted" to
the front of my path, and I accidentally used THEIR hostname executable
-- which does something completely unexpected. (It's a GUI app!)

--
Chuck

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list