37signals/sub — pull request #11 by z0mbix (2012-10-08 10:20:59+00:00)
Title: Fixed ENVNAME so that sub supports commands with dashes in the name

I wanted to use a sub called "something-admin" but when bin/something-admin tries to run:

export _SOMETHING-ADMIN_ROOT="$(abs_dirname "$libexec_path")"

It fails as it contains a dash, so these should be converted to underscores.

Cheers z0mbix