```
Issue
If the path to an executable script contains spaces, "Run in terminal" does not handle spaces and bash tries to execute the path only up to the first space, resulting in a "file not found" error message.
Steps to reproduce
Expected behaviour
script.sh is run in terminal.
Current version of Nemo is 4.6.5 ---
However, the problem still stands:-
/home/jeremy/Desktop/temperature based cpu throttler.sh [normally run elsewhere and with some underscores]
When I attempted to run it from nemo window, I'm offered the usual choice of run in terminal, display, etc
If I tell it to run in terminal it outputs

However, if I attempt to display the script, it works fine.
It's your bash scripts that are broken not nemo.
Use
/home/jeremy/Desktop/'temperature based cpu throttler.sh'
or
'/home/jeremy/Desktop/temperature based cpu throttler.sh'
or
/home/jeremy/Desktop/temperature\ based\ cpu\ throttler.sh
I never normally put spaces in scripts - but if I do, nemo should handle the issue in the same way as it does for opening the same file in a text editor.
This is not an issue for me since I have no difficult names in any scripts. ;)

Sorry about the old version, my bad.
@Jeremy7701 Thank you for looking into it on the newest version.
@leigh123linux The problem is not a line inside the script (even an empty script file produces the error), the problem is the path that nemo hands to the terminal. This path is generated by nemo, so the user has no way of adding quotes or escaping spaces as you suggest.
I agree with @HifeFish, this is a bug indeed.
@HifeFish @Jeremy7701 what is Terminal set to in Preferred Applications?
I presume its set to gnome-terminal - at least that's what is run from the LMDE4 menu.

Yeah it is. There looks to be a couple of factors driving this issue and that setting looks to be one on them. Thanks.
@Jeremy7701 @HifeFish can either you try running
gsettings set org.cinnamon.desktop.default-applications.terminal exec-arg -- Thanks.
I made the gsettings change and no error messages are now generated.
(I checked the change had occurred with the GUI dconf).
A bash script (document 1.sh) which simply creates a file in /tmp was successfully 'run in terminal' from nemo.
Most helpful comment