[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help how explain . / source work
From: |
Greg Wooledge |
Subject: |
Re: Help how explain . / source work |
Date: |
Tue, 6 Jun 2023 22:28:21 -0400 |
On Wed, Jun 07, 2023 at 09:20:20AM +0700, Budi wrote:
> Help to have . / source work to perform total replacement of current
> loaded/run sourced codes script as e.g.
>
> $ , bashscript
>
> just add commands/codes script to the current loaded/run sourced one,
> while may replace if only it is coincidentally the same identifier
> name
>
> But so explain how to have total replacing it, i.e. clean up the
> current loaded/run source before sourcing the new
Don't use . or source, then. Just exec the new script. (This means it'll
need to have +x permissions and a shebang.)