Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/chainlint/inline-comment.test # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / chainlint / inline-comment.test` 14 lines ยท 412 bytes Raw Blame History 1 test_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 '