# Providing an alternate label for glossaries entries

I would like to provide an alternate label for some entries with glossaries without having to duplicate the key settings of the original entry. For example a command like \newlabelglossaryentry{<new>}{<old>} that would make any command such as \gls{<new>} have exactly the same effect as \gls{<old>}.

Here is what I am thinking about:

\documentclass{article}
\usepackage{glossaries}
\newglossaryentry{foo}{name={fooname}, description={the foo text}}
\newlabelglossaryentry{bar}{foo}% undefined yet

\makeglossaries

\begin{document}
\gls{foo} % output = "fooname"
\gls{bar} % output should be "fooname" too

\printglossaries
\end{document}


EDIT: for acronyms, I also would like that the first usage of foo also marks bar as having been used, and vice versa.