Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
More portable extraction of short hostname #13109
This probably deserves a comment or some helpful person will revert it back to
Ah. Solaris 10.
referenced this pull request
Aug 25, 2015
@nik9000 Also HP-UX.
I've added a comment as you requested. I also discovered in the course of testing this is on Solaris VM that combining the variable definition and export into a single line isn't supported in some shells (namely the Bourne shell which is the default shell on Solaris). I've found a more portable way to do the export as well. I've updated the pull request accordingly.