[Toybox] hostname vs ${x at P}

Chet Ramey chet.ramey at case.edu
Mon Sep 21 12:52:09 UTC 2026


On 9/19/26 7:10 PM, Rob Landley wrote:
> How do I reset what bash thinks the hostname is?

You don't. Bash fetches the hostname at startup and uses it. It's very
uncommon for the hostname to change while bash is running; if you want
to accommodate something like that and pick up a new hostname for some
reason, use `exec bash'.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet at case.edu    http://tiswww.cwru.edu/~chet/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <http://lists.landley.net/pipermail/toybox/attachments/20260921/8baf7f3a/attachment.sig>


More information about the Toybox mailing list