Closed xdissent closed 9 years ago
Bash uses # for variable text substitution: http://www.tldp.org/LDP/abs/html/string-manipulation.html
#
URL="http://example.com" HOST="${URL#http*://}" # HOST="example.com"
This PR fixes command normalization to consider non-comment uses of #. It assumes a comment is a line beginning with zero or more whitespace characters followed by a #.
Thanks, wasn't aware of the alternate use of #.
Bash uses
#
for variable text substitution: http://www.tldp.org/LDP/abs/html/string-manipulation.htmlThis PR fixes command normalization to consider non-comment uses of
#
. It assumes a comment is a line beginning with zero or more whitespace characters followed by a#
.