/** Shared helpers for drive-resident /bin scripts (prepended before each command). */ function bareStdin(ctx) { return typeof ctx.shellStdin === 'string' ? ctx.shellStdin : '' } async function run(ctx, argv) { const h = globalThis.process?.env?.HOSTNAME || globalThis.process?.env?.COMPUTERNAME || ctx.vfs.env.HOSTNAME || 'bare-os' ctx.console.log(h) }