Toggling the values of variables controlling optional shell behavior