Welcome to mirror list, hosted at ThFree Co, Russian Federation.

inline-comment.test « chainlint « t - git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8f26856e775b569871849f62856a27013de44be3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(
# LINT: swallow inline comment (leaving command intact)
	foobar && # comment 1
# LINT: mispositioned "&&" (correctly) swallowed with comment
	barfoo # wrong position for &&
# LINT: "#" in string not misinterpreted as comment
	flibble "not a # comment"
) &&

# LINT: "#" in string in cuddled subshell not misinterpreted as comment
(cd foo &&
	flibble "not a # comment")