nima / site

Modular shell-scripting framework - 99% native bash, 1% phat!
http://nima.github.io/site/
5 stars 4 forks source link

Force variable reference checks on all global variables #21

Closed nima closed 10 years ago

nima commented 10 years ago

That means:

:%s/${\([A-Z0-9_]\+\)}/${\1?\}/g
nima commented 10 years ago

Actually ended up using:

:%s/${\(\([A-Z]\|g_\)[A-Z0-9_]\+\)}/${\1?\}/g

It's now cleaner, not perfect, but cleaner. Namely, the folds are set up the same way across all modules, and the fold names are mostly sensible, however they're in some places based on function groups, some places function names alone. This didn't need to change all in this one commit, and is left to organically grow to suit the particular module in question.

Closed by 8d01d13.