You are not logged in.
It seems since I updated earlier today that the `hostname` command (coreutils) no longer supports options to return the FQDN, Host part or Domain part of the hostname. Is this expected behavior or a regression in something?
It's not a huge problem since I can extract what I need with string manipulation of $HOSTNAME in bash, but will be annoying to have to mod all my scripts the rely on this behavior...
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
I think this will be fixed by the new versions of coreutils, net-tools and initscripts that are currently in testing.
Offline
Offline
Thanks karol, glad to know I'm not the only one missing it ![]()
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Is it just me or does the newest coreutils package not even include the hostname command?
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
Is it just me or does the newest coreutils package not even include the hostname command?
[karol@black ~]$ pkgfile hostname
core/gettext
core/net-tools
[karol@black ~]$ pacman -Q coreutils
coreutils 8.12-3
[karol@black ~]$ pacman -Ql coreutils | grep hostname
[karol@black ~]$ So it's just you and me ;P
Offline
Hello
no it's not just you because of that:
http://www.mail-archive.com/arch-dev-pu … 17065.html
This upgrade intends to fix the regression of coreutils' hostname not
being as featureful as net-tools'.
Changes:
- coreutils: revert to not building hostname
- net-tools: revert to building hostname and dnsdomainname
- initscripts: set hostname via /proc (does not use any binary)
- initscripts: remove superfluous dollar sign
Note that ypdomainname and nisdomainname are still provided by yp-tools.
Offline
Ah my problem was that I had installed net-tools 1.60-18 while I still had coreutils 8.12-2 so when I updated coreutils to 8.12-3 that "stole" hostname from my system. And I noticed it was gone right away because netcfg still uses it.
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline