Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit PowerShell script while it's running

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?

like image 801
Hope Avatar asked Nov 06 '22 09:11

Hope


1 Answers

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.

like image 182
Dennis Avatar answered Nov 13 '22 18:11

Dennis