Apparently, editing a Linux shell script while it is being executed results in an undefined behavior.
What happens when you edit a PowerShell script while it is being executed?
Apparently, editing a Linux shell script while it is being executed results in an undefined behavior.
What happens when you edit a PowerShell script while it is being executed?
PowerShell parses everything from top to bottom once and never goes back again.
Once it's in, it's in :)
If you need to reload as example, a PowerShell module into a current session you have to use the -Force flag.