delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/11/10:28:09

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4CB31EEC.3050605@redhat.com>
Date: Mon, 11 Oct 2010 08:27:56 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: hostname command
References: <7E93C5822639AC4B917B413898A805AAA431EA7FAC AT ADM-EXMBX0CD DOT adm DOT c DOT sdu DOT dk>
In-Reply-To: <7E93C5822639AC4B917B413898A805AAA431EA7FAC@ADM-EXMBX0CD.adm.c.sdu.dk>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 10/09/2010 12:15 AM, Hans Jørgen Aagaard Jensen wrote:
> Hi
>
> "hostname" in cygwin does not accept the normal unix/linux options as "-f", "-d", etc.

That's correct - cygwin's hostname(1) comes from coreutils, which does 
not support all the options that some other hostname(1) implementations 
provide.

> We are using "hostname -f" when compiling our quantum chemistry package Dirac,

Which is inherently non-portable - you'll have to update your package to 
be prepared for the fact that -f might not work on all systems.

> I would therefore appreciate if someone would implement at least the "-f" option of the hostname command,

If you want it in coreutils, then propose it upstream to the 
bug-coreutils AT gnu DOT org list.  Otherwise, if you are proposing that 
the cygwin distro use a different hostname(1) implementation than what 
is provided by coreutils, then please propose a new package for that 
implementation, and coordinate on cygwin-apps about transitioning 
hostname from coreutils over to the new package.

> 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.

-- 
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019