Skip to content

Commit 97c0b41

Browse files
author
mirkobrombin
committed
split commands preserving quoted
1 parent 342dad2 commit 97c0b41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

easyterm/easyterm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
import gi
44
import sys
5+
import shlex
56
gi.require_version('Gtk', '3.0')
67
gi.require_version('Handy', '1')
78
gi.require_version('Vte', '2.91')
@@ -204,7 +205,8 @@ def do_command_line(self, command_line):
204205
if options.contains("cwd"):
205206
cwd = options.lookup_value("cwd").get_string()
206207
if options.contains("command"):
207-
command = options.lookup_value("command").get_string().split(" ")
208+
command = shlex.split(options.lookup_value("command").get_string())
209+
208210
if options.contains("env"):
209211
env = options.lookup_value("env").get_string().split(" ")
210212
if options.contains("actions"):

0 commit comments

Comments
 (0)