diff --git a/src/input.cpp b/src/input.cpp index 1486923622..9e71f1b3ad 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -289,8 +289,9 @@ void Input::parse() } // perform $ variable substitution (print changes) + // except if searching for a label since earlier variable may not be defined - substitute(copy,1); + if (!label_active) substitute(copy,1); // command = 1st arg