diff options
author | Mike Burns <mike@mike-burns.com> | 2014-11-15 06:18:19 +0100 |
---|---|---|
committer | Mike Burns <mike@mike-burns.com> | 2014-11-19 14:04:35 -0800 |
commit | 6f011c7fab8d407ec0cd091e9cbeb03c276372ce (patch) | |
tree | d42dba59c724d8ec13930296d0089fdac8563964 /man/rcup.1 | |
parent | f8f204c0573e7b259eb2a070bf6017d0bcb95f52 (diff) |
Only use the host's name in the test
The test uses `$(hostname)`, which can produce the FQDN; however, the
code only uses the host name portion of that. Modify the test to do the
same by defining a `hostname` function that calls the hostname(1)
binary then pipes it through sed(1).
Use command instead of hardcoding the path.
OS X uses `$HOSTNAME` instead of the result of hostname(1). In the test
suite, use `$HOSTNAME` first, falling back to hostname(1).
Diffstat (limited to 'man/rcup.1')
0 files changed, 0 insertions, 0 deletions