Created attachment 144079 [details] This is the problematic bash file SUMMARY STEPS TO REPRODUCE 1. I create the following bash file with executing permission 2. I click on the file to execute it OBSERVED RESULT - I was promted with: Unknown error code 100 execvp: Exec format error Please send a full bug report at https://bugs.kde.org - Although the script run find in the terminal - And I did include "#! /usr/bin/bash" at the start of my file SOFTWARE/OS VERSIONS Qt: 5.15.2 KDE Frameworks: 5.88.0 kf5-config: 1.0
"buildsystem" isn't the right product here, moving to "frameworks-kio". The problem's in the space character before the shebang in the first line. While kio detects that this is an executable shell script, I think this goes all the way down to QProcess via KProcessRunner and possibly to Linux's detection of scripts (which verifies that the first two characters are "#!"). I agree the error message is very cryptic though.
That's a pretty bad error message, yeah. We can do better.
I couldn't reproduce this issue with e.g.: #! /usr/bin/bash /usr/bin/kfind & works OK, and kfind is opened. Do you still see this issue?
Is there a space *before* the shebang in your test script?
Viewing plain text is misleading in web browsers, looking at the attachment again it's " #! /usr/bin/bash". Retesting, now I see the issue. IIRC this is the error message we get from the system/kernel, not sure how it can be improved...