read-envvar-name

read-envvar-name is a compiled Lisp function in `env.el'.

(read-envvar-name PROMPT &optional MUSTMATCH)

Read environment variable name, prompting with PROMPT.
Optional second arg MUSTMATCH, if non-nil, means require existing envvar name.
If it is also not t, RET does not exit if it does non-null completion.