Donnie Berkholz ha scritto:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Francesco Riosa wrote: | Is safe / portable use the $(hostname) inside an ebuild ? | if not what is a good replacement ?
If not, you could try uname -n.
Thank for your answer:
foo=$(hostname 2>/dev/null)
if [[ -z "${foo}" ]] ; then
foo=$(uname -n 2>/dev/null) if [[ -z "${foo}" ]] ; then
foo="noname"
fi
fisomething like this should run on every system.
-- [email protected] mailing list
