Skip to content

Can '--smart-case' apply for every item in '-e' or file specified by '-f'? #1787

Answered by BurntSushi
xaljer asked this question in General
Discussion options

You must be logged in to vote

This is a plausible thing to do. I thought about this a bit this morning before responding, and I can't think of any good reason not to do this, other than the fact that it might be a bit tricky to pull off in the existing implementation. So doing this might require a bit of refactoring. But it does seem to me like since --smart-case is specifically determined by the characteristics of a pattern, then it stands to reason that it should probably apply to each individual pattern.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by xaljer
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants