X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0	tests=AWL,BAYES_40,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-ID: <4CB334D6.8040700@cwilson.fastmail.fm>
Date: Mon, 11 Oct 2010 12:01:26 -0400
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
Reply-To: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: hostname command
References: <7E93C5822639AC4B917B413898A805AAA431EA7FAC@ADM-EXMBX0CD.adm.c.sdu.dk> <4CB31EEC.3050605@redhat.com>
In-Reply-To: <4CB31EEC.3050605@redhat.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

