[frameworks-kio] [Bug 431233] Fails to execute .sh shell script file that lacks a shebang

David bugzilla_noreply at kde.org
Fri Apr 23 13:36:27 BST 2021


https://bugs.kde.org/show_bug.cgi?id=431233

--- Comment #9 from David <david.cortes.rivera at gmail.com> ---
(In reply to Ahmad Samir from comment #8)
> (In reply to David from comment #6)
> > Running 'sh file.sh' does not require a shebang. 
> [...]
> You run `sh file.sh` from terminal, using a shell, bash, zsh...etc; but
> KProcess/QProcess doesn't know that, and without that info the system call
> it'll use fails, IIUC.

It'd then be helpful to at least show a message to the user that it needs a
shebang, instead of tying to execute it as a binary. I assume it already has
the mimetype information when it attemps to run it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list