What does "brew cask update" actually do?

1 · Evan Hahn · Jan. 7, 2015, 6 a.m.
In short: brew cask update just calls brew update. I found myself confused by the brew cask update command in Homebrew Cask. Its docs say "a synonym for 'brew update'", but that left me a bit confused. Does it update the Homebrew Cask list, or does it call brew update and do nothing else? It turns out that it's the latter. To find this out, I went spelunking in the source code. I found update.rb, which contained the following lines: def self.run(*_ignored) result = Hbc::SystemCommand.run(Hbc.h...