Describe the bug
When running a command from a plugin that has <swiftbar.runInBash>false</swiftbar.runInBash> configured, and the command has a parameter with a space in it, the command receives that parameter surrounded with single quotes.
To Reproduce
Steps to reproduce the behavior:
Copy the command.py file below to ~/Desktop/swiftbar-escape/command.py
Add the test.10s.py file below to your plugin folder, adjusting the username in the path on line 6.
Wait until the “Python Test” plugin appears
Python Test › Run Command
Check ~/Dekstop/swiftbar-escape/python-command.log, it will say ['/Users/<your username>/Desktop/swiftbar-escape/command.py', "'foo bar'"]
Expected behaviorpython-command.log should say ['/Users/<your username>/Desktop/swiftbar-escape/command.py', 'foo bar'], without the extra quotes
Describe the bug When running a command from a plugin that has
<swiftbar.runInBash>false</swiftbar.runInBash>
configured, and the command has a parameter with a space in it, the command receives that parameter surrounded with single quotes.To Reproduce Steps to reproduce the behavior:
command.py
file below to~/Desktop/swiftbar-escape/command.py
test.10s.py
file below to your plugin folder, adjusting the username in the path on line 6.~/Dekstop/swiftbar-escape/python-command.log
, it will say['/Users/<your username>/Desktop/swiftbar-escape/command.py', "'foo bar'"]
Expected behavior
python-command.log
should say['/Users/<your username>/Desktop/swiftbar-escape/command.py', 'foo bar']
, without the extra quotesEnvironment:
Plugin Example:
test.10s.py:
command.py:
Additional Context: