question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Summary (I did not check on Linux, but hopefully, matching there is case-sensitive):

  • IsPathSeparator(...) is correct for Windows, but wrong for Linux, as back-slashes are not considered separators. There is even a possibility that the forward-slash is escaped (preceded with the odd number of back-slashes: 1, 3, 5…), hence not considered as a separator
  • Current directory and relative paths are not considered
  • Path separator assumed to be outside any kind of brackets
  • Braces not implemented (this is significant)

Details (YES = all good):

Current Directory: C:\Users\AlexIurovetski\Projects\Dabble\Dabble\bin\Debug\net6.0

Glob:  c:\a\b\..\b\*.cs
Path:  c:\a\b\c.cs
Match: -- NO --

Glob:  **/*.cs
Path:  c:\a\b\c.cs
Match: YES

Glob:  **\*.cs
Path:  c:\a\b\c.cs
Match: YES

Glob:  **.cs
Path:  c:\a\b\c.cs
Match: -- NO --

Glob:  \**\*.cs
Path:  c:\a\b\c.cs
Match: -- NO --

Glob:  *.{cs,txt}
Path:  c:\a\b\c.cs
Match: -- NO --

Glob:  **/{*.md,src/*.cs}
Path:  c:\a\b\c.cs
Match: -- NO --

Glob:  **[/\]*.cs
Path:  c:\a\b\c.cs
Match: -- NO --

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dazinatorcommented, Jun 23, 2022

Thanks it’s definitely value feedback. I will consider things I can do to enable this scenario better in future. I’ll open a more targeted issue for now about the Linux filename slash issue.

0reactions
aiurovetcommented, Jun 23, 2022

Mainly, I wanted to draw attention to the issues which arise when using glob patterns for filtering files. This is primary use case. Something like a command-line application which expects files to process: customapp ..\otherdir\*.txt or ./customapp "/rootdir/lib*/**.{a,obj}" and so on. You can close the ticket.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Get Rid of Bugs Indoors
Bugs commonly found inside homes include ants, cockroaches, earwigs, firebrats, flies, house centipedes, silverfish, and spiders. Pet owners sometimes have to ...
Read more >
16 Disgusting House Bugs and How to Get Rid of Them
You may be surprised by which of these house bugs are helpful and which are dangerous. Either way, we'll show you how to...
Read more >
Why are there suddenly so many bugs in my house?
Ants, houseflies, and some beetles are common examples of bugs that might show up if your pad has great dining options. Of course,...
Read more >
15 Common House Bugs to Know - What Insects Live in ...
Wolf Spider Asian Camel Cricket Field Cricket Odorous House Ants Carpenter Ant Western Conifer Seed Bug Cluster Fly Silverfish Bed Bugs Cockroach Fruit...
Read more >
10 Tiny Bugs in Your House—And How to Get Rid of Them
Weevils Carpet Beetles Centipedes Fruit Flies Cockroaches Drain Flies Silverfish Dust Mites
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found