This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: why is hostname(1) output in UPPERCASE?
- From: "Elfyn McBratney" <elfyn at exposure dot org dot uk>
- To: "cygwin" <cygwin at cygwin dot com>
- Date: Fri, 10 Jan 2003 09:42:56 -0000
- Subject: Re: why is hostname(1) output in UPPERCASE?
- Reply-to: "Elfyn McBratney" <cygwin at cygwin dot com>
The computer name that hostname(1) returns is the one the Win32 API
returns.
I'm not sure if this can be looked upon as a bug as cygwin gets the
computer-name from win32 syscalls and hostname(1) gets the name from
cygwin... Are you sure your computer name isn't set in capitals? Are you
using a dns suffix?
Elfyn
elfyn@exposure.org.uk
----- Original Message -----
From: "Eric De Mund" <ead@ixian.com>
To: <cygwin@cygwin.com>
Sent: Friday, January 10, 2003 7:24 AM
Subject: why is hostname(1) output in UPPERCASE?
> Hello,
> Why is hostname(1) output in UPPERCASE, when the native Windows 2000
> hostname.exe outputs lowercase? Is this something I've unwittingly
> enabled? Regardless, shouldn't RFC 1178's suggestion be followed? (It
> states, "convention dictates that computer names appear all lowercase.")
> Or is this a sh-utils rather than a cygwin bug?
>
> Here's my current output:
>
> ead@COWBERRY ~
> $ hostname
> COWBERRY
>
> ead@COWBERRY ~
> $ /cygdrive/c/WINNT/system32/hostname
> cowberry
>
> ead@COWBERRY ~
> $
>
> This is in a brand new and complete 2003.01.09 download and install of
> cygwin on a Windows 2000 Professional SP2 machine (under both bash(1)
> and zsh(1)). See the output of "cygcheck --sysinfo", below, if
> necessary.
>
> Many thanks,
> Eric
>