Wednesday, October 19, 2011

No indentation in LFS-7.0

I've decided to change the layout of the scripts I'm preparing for LFS-7.0.

Until now, most commands in a script had an indentation of 2 or 4 spaces. However, this always presented a few problems, especially with the 'cat' command, which potentially could lead to bugs. To simplify things (and avoid unnecessary bugs) I decided to remove the indentation.

I then made some creative use of the '#' (comment) character to clearly mark the different sections of the script.

Here is a comparison, the left script is in the new layout (click to enlarge):

Personally, I believe the scripts look much better than before.

No comments:

Post a Comment