Discussion:
[Help-bash] Stop hot code reloading
João Eiras
2017-02-01 22:59:16 UTC
Permalink
Howdy.

I frequently bites me having a long running script which I'm
developing and if I save the file while it's executing, it then the
previously running script crashes due to a syntax error.

How can I prevent hot code reloading ? Ideally, finding a way to
disable it entirely for the bash session.

Thank you !
Dennis Williamson
2017-02-01 23:05:36 UTC
Permalink
On Feb 1, 2017 5:00 PM, "João Eiras" <***@gmail.com> wrote:

Howdy.

I frequently bites me having a long running script which I'm
developing and if I save the file while it's executing, it then the
previously running script crashes due to a syntax error.

How can I prevent hot code reloading ? Ideally, finding a way to
disable it entirely for the bash session.

Thank you !


Doctor, it hurts when I do this. "Don't do that." Seriously.

Do what the big boys do. Don't develop in production.
Grisha Levit
2017-02-02 00:34:35 UTC
Permalink
There was recently a question on SE on this topic with a great answer
from Stéphane
Chazelas.

https://unix.stackexchange.com/q/331837/22523
João Eiras
2017-02-02 01:14:08 UTC
Permalink
On 2 February 2017 at 00:05, Dennis Williamson
Post by Dennis Williamson
Do what the big boys do. Don't develop in production.
Since when I my personal computer "production" ? ....
Post by Dennis Williamson
There was recently a question on SE on this topic with a great answer from
Stéphane Chazelas.
https://unix.stackexchange.com/q/331837/22523
That was quite interesting to read.

Now I know a bit better. Guess I'll start wrapping stuff with a main()
(as I do for every other programming language)

Thanks !

Loading...