Skip to content
Permalink
Browse files

Fix 'run' arguments: Evaluate $@ later.

  • Loading branch information...
hirschsn committed May 14, 2019
1 parent 556501f commit 26421491ac81ab4ad79c0203c5200f403783f874
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/python/pypresso.cmakein
@@ -54,7 +54,7 @@ fi
case $1 in
--gdb)
shift
[ "@PYTHON_FRONTEND@" = "@IPYTHON_EXECUTABLE@" ] && exec gdb -ex "set print thread-events off" -ex "set exec-wrapper sh -c 'exec \"@IPYTHON_EXECUTABLE@\" \"$@\"'" --args "@PYTHON_EXECUTABLE@" $@
[ "@PYTHON_FRONTEND@" = "@IPYTHON_EXECUTABLE@" ] && exec gdb -ex "set print thread-events off" -ex "set exec-wrapper sh -c 'exec \"@IPYTHON_EXECUTABLE@\" \"\$@\"'" --args "@PYTHON_EXECUTABLE@" $@
exec gdb --args @PYTHON_FRONTEND@ $@
;;
--lldb)
@@ -76,7 +76,7 @@ case $1 in
--gdb=*)
options="${1#*=}"
shift
[ "@PYTHON_FRONTEND@" = "@IPYTHON_EXECUTABLE@" ] && exec gdb -ex "set print thread-events off" -ex "set exec-wrapper sh -c 'exec \"@IPYTHON_EXECUTABLE@\" \"$@\"'" ${options} --args "@PYTHON_EXECUTABLE@" $@
[ "@PYTHON_FRONTEND@" = "@IPYTHON_EXECUTABLE@" ] && exec gdb -ex "set print thread-events off" -ex "set exec-wrapper sh -c 'exec \"@IPYTHON_EXECUTABLE@\" \"\$@\"'" ${options} --args "@PYTHON_EXECUTABLE@" $@
exec gdb ${options} --args @PYTHON_FRONTEND@ $@
;;
--lldb=*)

0 comments on commit 2642149

Please sign in to comment.
You can’t perform that action at this time.