# HG changeset patch # User Lachlan Andrew # Date 1451997893 -3600 # Node ID b432e7bb3cbdf001e2ccf55476d48a00eba94205 # Parent c044607a9225e3658aa06cf3ff5cfb04e54c9352 run-octave.in: Allow passing multiple arguments to run-octave. (bug #46690) diff -r c044607a9225 -r b432e7bb3cbd run-octave.in --- a/run-octave.in Tue Jan 05 13:25:15 2016 +0100 +++ b/run-octave.in Tue Jan 05 13:44:53 2016 +0100 @@ -57,7 +57,7 @@ ## Checking for string equality below with prepended x's in order to ## handle problems with empty strings. -if [ $# -gt 0 ]; then +while [ $# -gt 0 ]; do if [ "x$1" = "x-g" ]; then driver="gdb --args" shift @@ -82,8 +82,10 @@ elif [ "x$1" = "x-cli" ]; then octave_executable="$builddir/src/octave-cli" shift + else + break fi -fi +done ## We set OCTAVE_ARCHLIBDIR so that the wrapper program can find the ## octave-gui program in the build tree. That will fail if we ever