Linked by David Adams on Wed 10th Sep 2008 21:33 UTC, submitted by BlueVoodoo
General Unix How could someone make a more powerful editing tool than vi, you may ask? The answer is Vim, and this article provides details on the many enhancements that have made Vim a highly used and acceptable editor in the world of UNIX and Linux.
Thread beginning with comment 330021
To read all comments associated with this story, please click here.
Comment by dreamlax
by dreamlax on Thu 11th Sep 2008 01:08 UTC
dreamlax
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.

RE: Comment by dreamlax
by Karrick on Thu 11th Sep 2008 02:55 in reply to "Comment by dreamlax"
Karrick Member since:
2006-01-12

Comments like these merely discourage people from even wanting to contribute to OSNews.

EDIT:

I know it wasn't an OSNews contribution...

Edited 2008-09-11 02:58 UTC

Reply Parent Bookmark Score: -1

RE: Comment by dreamlax
by anomie on Thu 11th Sep 2008 19:45 in reply to "Comment by dreamlax"
anomie Member since:
2007-02-26

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.

Reply Parent Bookmark Score: 2