From a5becf54be43e7df95a7e69ffecbb5aa4a31bd12 Mon Sep 17 00:00:00 2001 From: Grazfather Date: Mon, 11 Sep 2023 11:54:51 -0400 Subject: [PATCH] Do not quote paths when running 'source' --- gef.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gef.py b/gef.py index c152ce45f..5c187451f 100644 --- a/gef.py +++ b/gef.py @@ -9540,7 +9540,7 @@ def load_extra_plugins(self) -> int: def load_plugin(fpath: pathlib.Path) -> bool: try: dbg(f"Loading '{fpath}'") - gdb.execute(f"source '{fpath}'") + gdb.execute(f"source {fpath}") except Exception as e: warn(f"Exception while loading {fpath}: {str(e)}") return False @@ -10180,7 +10180,7 @@ def screen_setup(self) -> None: f.write(f"screen bash -c 'tty > {tty_path}; clear; cat'\n") f.write("focus left\n") - gdb.execute(f"!'{screen}' -r '{sty}' -m -d -X source '{script_path}'") + gdb.execute(f"!'{screen}' -r '{sty}' -m -d -X source {script_path}") # artificial delay to make sure `tty_path` is populated time.sleep(0.25) with open(tty_path, "r") as f: