diff --git a/libinterp/corefcn/variables.cc b/libinterp/corefcn/variables.cc --- a/libinterp/corefcn/variables.cc +++ b/libinterp/corefcn/variables.cc @@ -2346,6 +2346,8 @@ without the dash as well. string_vector argv = args.make_argv ("clear"); + octave_link::disable (); + if (argc == 1) { do_clear_globals (symtab, argv, argc, true); @@ -2469,6 +2471,8 @@ without the dash as well. } } + octave_link::enable (); + return ovl (); }