From fdbe3e05f323c95687a1137983f9623911008ca2 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 13 Aug 2021 14:19:26 -0700 Subject: [PATCH] fix issue with globs not including filenames with spaces with magic syntax (introduced during switch to use subprocess to grab process exit code). No longer need to shlex quote arguments. --- jc/cli.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jc/cli.py b/jc/cli.py index b79b50be..40e74d3d 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -6,7 +6,6 @@ import sys import os import os.path import re -import shlex import importlib import textwrap import signal @@ -415,8 +414,7 @@ def magic_parser(args): if len(args) <= 1 or args[1].startswith('--'): return False, None, None, [] - # correctly parse escape characters and spaces with shlex - args_given = ' '.join(map(shlex.quote, args[1:])).split() + args_given = args[1:] options = [] # find the options