@in p4 filename

I would like a little script p4. Unfortunately, some of the file names we are tracking have an "@" in the file name.

File names are in the form a@b.xml . If I try to do something like p4 sync a\@b.xml on mac (or p4 sync a@b.xml on windows), it will p4 sync a@b.xml error:

Invalid change list / client / label / date '@ b.xml'

Is there any other way to avoid this that perforce will recognize?

+7
scripting perforce escaping
source share
1 answer

Yes. Use an ASCII expression of the hexadecimal value of the character.

p4 sync a%40b.xml

See this article: Character restrictions in file names and entities .

+11
source share

All Articles