Search code examples
perforcecase-sensitive

P4: how to find files in a case insensitive manner?


Say a file is known to P4 as Foo.cpp

p4 files -e -m 100 //XXX/YYY/...foo.cpp*

(note the lower case f) can't find it. Has anyone overcome this issue?

EDIT: the place I am running the command from does not have a local p4 checkout so going through the file system is not an option here.


Solution

  • If you are able, I would highly recommend going through the trouble (thanks to Linux-dependency hell) of installing P4Search. It will give you the case-insensitive searching power you seek, but it will also save you hours and hours of time down the road.

    http://www.perforce.com/perforce/r14.1/user/p4searchnotes.txt