1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-08-06 22:32:54 +02:00

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.

This commit is contained in:
Kelly Brazil
2021-08-13 14:19:26 -07:00
parent 7cc168f640
commit fdbe3e05f3

View File

@ -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