Skip to content

Commit e9c7343

Browse files
committed
Apply shlex.quote to positional args to handle paths with spaces
Signed-off-by: Maria Teresa Ortega <teresa.ortega0903@gmail.com>
1 parent dd44b6d commit e9c7343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lambkin/core/shell/proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __call__(self, *args: Any, **kwargs: Any) -> None:
4545
extra = []
4646

4747
for arg in args:
48-
extra.append(str(arg))
48+
extra.append(shlex.quote(str(arg)))
4949

5050
for key, value in kwargs.items():
5151
flag = "--" + key.replace("_", "-")

0 commit comments

Comments
 (0)