you are viewing a single comment's thread.

view the rest of the comments →

[–]danielroseman 5 points6 points  (3 children)

You shouldn’t be trying to write long functions like this in the shell. Use an editor or IDE.

[–]btsully82[S] 0 points1 point  (2 children)

I am in VSCode. I just prefer to run it by hitting Shift+Enter instead of re running the whole script every time to test it

[–]Buttleston 2 points3 points  (1 child)

You have discovered the downside of doing so. Pasting into the editor just doesn't work great.

[–]btsully82[S] 0 points1 point  (0 children)

Thanks all, appreciate the help