actually set VAR_FROM_CMD when appropriate and only skip setting in VAR_GLOBAL when that flag is set.