mxcl/homebrew — Issue #9241: Create "latest" symlink for the latest keg in /usr/local/Cellar/
Author: adammw
Created: 2011-12-23 04:15:10+00:00
State: open

For example, if version 0.1 is installed, link /usr/local/Cellar/foo/latest to /usr/local/Cellar/foo/0.1, then when it is upgraded to a newer version, latest is then linked to the newer version.
The rationale for this is for keg-only packages or packages (such as coreutils's aliases) that include scripts. Using a path to "latest" helps to remove the pain of updating all paths pointing to a particular version manually.