Index: VariablesCommand.cc =================================================================== --- VariablesCommand.cc (revision 449) +++ VariablesCommand.cc (working copy) @@ -33,6 +33,7 @@ void VariablesCommand::run_command( NetworkConnection &conn, const std::vector &args ) { stringstream out; + bool tagged = false; TypeSpec cls = ALL; if( args.size() >= 2 ) { @@ -43,6 +44,10 @@ else if( typespec == "function" ) { cls = FUNCTION; } + else if( typespec == "tagged" ) { + cls = ALL; + tagged = true; + } else { CERR << "Illegal variable type: " << typespec << endl; throw DisconnectedError( "Illegal variable type" ); @@ -59,7 +64,8 @@ if( (cls == ALL && (symbol_nc == NC_VARIABLE || symbol_nc == NC_FUNCTION || symbol_nc == NC_OPERATOR)) || (cls == VARIABLE && symbol_nc == NC_VARIABLE) || (cls == FUNCTION && (symbol_nc == NC_FUNCTION || symbol_nc == NC_OPERATOR)) ) { - out << symbol->get_name() << "\n"; + if (tagged) out << symbol_nc << symbol->get_name() << "\n"; + else out << symbol->get_name() << "\n"; } } }