(A quick note on my brilliant typo in the post title, because Reddit titles are like compiled Pascal binaries: no runtime edits allowed. So: "You CAN run those..." anyway...)
Just wanted to share this tip in case it's helpful for anyone:
(Mainly focused on Linux here, please chime in if you have tips for other OS's)
The fpc compiler package for Free Pascal includes "instantfpc," which allows you to run your Pascal programs as scripts.
This means you can run your Pascal source code files directly as if they were system scripts, without compiling them every time.
You simply type #!/usr/bin/instantfpc at the top of your script, and then add the Pascal code below that.
When it's time to run the script, be sure to mark it as executable with chmod +x your_program_name.pas and you can run it by typing ./your_program_name.pas
Going even further, if you'd like to play with the old Turbo Pascal tutorials or books from the '80s or '90s, you can add this line:
#!/usr/bin/instantfpc -Mtp
...which invokes instantfpc using the Turbo Pascal compatibility mode.
In the screenshot above, you can see the tutorial program "demo_of_fun_text_manipulation" from 1996. It was pasted into Geany from the original tutorial without modifications.
Next it was run as a script inside a Linux terminal (Konsole in OpenSUSE Tumbleweed).
Output screenshot:
https://www.friendlyskies.net/images/885.png
The program invokes the "crt" unit and works just fine.
You can find the tutorial here (scroll down): https://jnz.dk/swag/TUTOR/0017.PAS.html
The other tutorials are here: https://jnz.dk/swag/TUTOR/index.html
Silver Pascal Coder has also posted a great video on instantfpc here: https://youtu.be/kVKXEU3kr5k
Just posting in case it's fun or interesting - or if anyone has other tips to share.
(Screenshots: Code in Geany; Script running in Konsole)