From: hdkutz <hd...@hd...> - 2007-07-31 06:47:53
|
On Tue, Jul 31, 2007 at 08:07:07AM +0200, Rainer Tammer wrote: > Hello, > I have fond a (severe) bug in coreutils-5.0-2 hostname command which > drove me crazy. > > If you enter: hostname -s (AIX version) you will get the short hostname > If you enter: hostname -s (Toolbox version) the hostname ist set to "-s" !! > > AIX version > > # /usr/bin/hostname > service > > Toolbox version > # /opt/freeware/bin/hostname > service > > AIX version > > # /usr/bin/hostname -s > service > > Toolbox version > > # /opt/freeware/bin/hostname -s > (no output) > > Now the hostname is -s > > AIX version > # /usr/bin/hostname > -s > > I discovered the problem during "configure" runs. > > Is this a known problem ?? > > Bye > Rainer The commands differ! Check the man page and info of /opt/freeware/bin/hostname. <snip> File: coreutils.info, Node: hostname invocation, Next: hostid invocation, Pr\ ev: uname invocation, Up: System context `hostname': Print or set system name ==================================== With no arguments, `hostname' prints the name of the current host system. With one argument, it sets the current host name to the specified string. You must have appropriate privileges to set the host name. Synopsis: hostname [NAME] The only options are `--help' and `--version'. *Note Common options::. An exit status of zero indicates success, and a nonzero value indicates failure. <snip> Cheers, ku -- Ben (Obi-Wan) Kenobi: You must learn the ways of the Force if you are to come with me to Alderaan. |