diff --git a/aider/tools/grep.py b/aider/tools/grep.py index e28936ef14e..43a86e6ac83 100644 --- a/aider/tools/grep.py +++ b/aider/tools/grep.py @@ -1,7 +1,8 @@ -import shlex import shutil from pathlib import Path +import oslex + from aider.run_cmd import run_cmd_subprocess @@ -117,7 +118,7 @@ def _execute_grep( cmd_args.extend([pattern, str(search_dir_path)]) # Convert list to command string for run_cmd_subprocess - command_string = shlex.join(cmd_args) + command_string = oslex.join(cmd_args) coder.io.tool_output(f"⚙️ Executing {tool_name}: {command_string}")