RFE: hostname -s
David Kaelbling <[email protected]> Mon, 25 Aug 2003 10:54:53 -0400
| Newsgroups | gmane.comp.gnu.sh-utils.bugs |
|---|---|
| Organization | Silicon Graphics, Inc. |
| Message-ID | <[email protected]> |
On IRIX the /usr/bsd/hostname command supports a "-s" option that makes it return the simple (no domain) version of the host name: orchietta 15> hostname orchietta.hudson.sgi.com orchietta 16> hostname -s orchietta It would be nice if the GNU sh-utils hostname also dealt with this option, as currently some scripts that are sloppy with the PATH settings break with messages like this: hostname: cannot set hostname to `-s': Operation not permitted Naturally such scripts are wrong, but still... Thanks, David -- David KAELBLING <[email protected]> Silicon Graphics Computer Systems 1 Cabot Rd, suite 250; Hudson, MA 01749 978.562.8857, fax .7450