interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / chainlint / inline-comment.test

14 lines · 412 bytes Raw Blame History
1test_expect_success 'inline-comment' '
2(
3# LINT: swallow inline comment (leaving command intact)
4 foobar && # comment 1
5# LINT: mispositioned "&&" (correctly) swallowed with comment
6 barfoo # wrong position for &&
7# LINT: "#" in string not misinterpreted as comment
8 flibble "not a # comment"
9) &&
10
11# LINT: "#" in string in cuddled subshell not misinterpreted as comment
12(cd foo &&
13 flibble "not a # comment")
14'