Update reg_glob_cmd.cpp