diff --git a/core/core-cli.el b/core/core-cli.el index 86f3ed9ab..37eed24d8 100644 --- a/core/core-cli.el +++ b/core/core-cli.el @@ -51,8 +51,8 @@ (condition-case e (dolist (var (or (cdr (assq (intern profile) (read (current-buffer)))) (user-error "No %S profile found" profile))) - (if (eq var 'env) - (dolist (env var) (setenv (car env) (cdr env))) + (if (eq (car var) 'env) + (dolist (env (cdr var)) (setenv (car env) (cdr env))) (set (car var) (cdr var)))) (error (error "Failed to parse profiles.el: %s" (error-message-string e)))))))