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


_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to