https://bugs.kde.org/show_bug.cgi?id=476083
Bug ID: 476083 Summary: External Tools / Run Shell Script : does not work Classification: Applications Product: kate Version: unspecified Platform: Flatpak OS: Linux Status: REPORTED Severity: minor Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: remiforkdebugrep...@gmail.com Target Milestone: --- SUMMARY External Tools / Run Shell Script : does not execute the shell script Example script : #!/bin/bash echo hello echo hello > ~/hello STEPS TO REPRODUCE 1. Open a valid bash script : - begins with #!/bin/bash - owned by the current user - has +x file permission - executed successfully when launched from konsole 2. Click Menu > Tools > External Tools > Tools > Run Shell Script OBSERVED RESULT Konsole window opens and closes immediately The script is not executed EXPECTED RESULT The script is executed Konsole window shows the result Konsole window waits a key press to close the window SOFTWARE/OS VERSIONS Linux: Debian 11 KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION This bug is due to the default command arguments configured with "Run Shell Script" tool, which is : -e sh -c "cd %{Document:Path} && pwd && chmod -vc a+x %{Document:FileName} && ./%{Document:FileName} ; echo Press any key to continue. && read -n 1" When running the following command : sh -c read -n 1 We get an error : -n: 1: read: arg count On my system it can be solved by replacing : echo Press any key to continue. && read -n 1" by : echo Press enter to continue. && read null" Which is a valid sh command I can open a minimal merge request but I don't know the eventual implications on other systems -- You are receiving this mail because: You are watching all bug changes.