blob: b7adad96a1d48dd86383f34e6874dcb2facc1e95 [file] [log] [blame]
Denys Vlasenko25f3b732017-10-22 15:55:48 +02001echo "`echo Ok1 #comment is ignored`"
2echo `echo Ok2 #comment is ignored`
3#
4# Surprisingly, bash does not handle comments in $()
5# the same way as in ``. "#" causes the rest of the line, _including_ )",
6# to be ignored. These lines would cause an error:
7#echo "$(echo Ok3 #comment is ignored)"
8#echo $(echo Ok4 #comment is ignored)
9#
10echo "$(echo Ok5 #comment is ignored
11)"
12echo $(echo Ok6 #comment is ignored
13)