martin-ueding / thinkpad-scripts

Screen rotation, docking and other scripts for ThinkPad® X220 and X230 Tablet
Other
133 stars 23 forks source link

Use shlex to make subprocess debug output copyable #115

Closed martin-ueding closed 8 years ago

martin-ueding commented 8 years ago

Currently we have the ' '.join(command) thing in the debug output. This means that one cannot directly copy and paste the commands that are executed. In the shlex module there is an inverse shell parser which will add quotes as needed. This would make the output nicer and more readable for people used to shell scripts.

martin-ueding commented 8 years ago

This is implemented in 4.7.2 now.