GNOME Bugzilla – Bug 699663
external tools: Run Command should accept shell quoting
Last modified: 2019-03-23 20:35:13 UTC
The External Tools plugin comes with a built-in Run Command tool. Suppose I want to use this tool to perform this task: $ sed 's/a/ /' If I invoke Run Command, and type this into the dialog box: sed 's/a/ /' then I get this error: sed: -e expression #1, char 1: unknown command: `'' The problem is that the single quote is being passed literally to sed. The user may need to use quotes to construct arguments which contain spaces in situations like this. So we should use a shell to interpret the command to be run.
Created attachment 243336 [details] [review] fix Here's a fix.
Review of attachment 243336 [details] [review]: Looks good.