Today I saw a bash script use a colon to denote a comment. What's the difference between using a colon and a hash mark?
: This is a comment.
# This is also a comment.
For one, I know you can't use a colon for a trailing comment:
cd somedir : This won't work as a comment.
But the fact that the above example works has me puzzled about how :
is evaluated.