Mercaptan is added to odorless and colorless natural and propane gases to give it a distinct and detectable odor.
A close cousin, chemically, is produced one one consumes asparagus and results in that funky smell during urination.