Linked by David Adams on Wed 10th Sep 2008 21:33 UTC, submitted by BlueVoodoo
Thread beginning with comment 330021
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.
Wow, underscores at the beginning of all your script's variable names certainly makes it look uglier.
I'm not crazy about prefixing variables with underscores either, but as long as the script's author is consistent with a convention like that it's not a bad practice.
I actually suffix Bourne shell variables with a 1 (which is probably equally silly) because I'm paranoid that I'll unwittingly conflict with another env variable.





Member since:
2007-01-04
Wow, underscores at the beginning of all your script's variable names certainly makes it look uglier. What is the purpose? To avoid conflict with already-exported variables? I'd just choose a more descriptive name for my variable.