Skip to content

Passing filepath with special characters to cspell does not work as expected. #4503

Answered by Jason3S
madostFKA asked this question in Q&A
Discussion options

You must be logged in to vote

@madostFKA,

I can see the confusion. By default, cspell works with globs, not file paths. () has special meaning in a glob.

The file:// prefix tells the spell checker to assume it is a file.

cspell "file://./test/($hello)/files/text.txt"
1/1 ./test/(hello)/files/text.txt 252.59ms

or you can use a file list file --file-list file-with-list-of-files-to-check.txt
or you can pipe it: echo "test/(\$hello)/files/text.txt" | cspell --file-list stdin

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@madostFKA
Comment options

Answer selected by madostFKA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants