[p4] Can't add filenames with wildcards [@#%*] in them.

Jeff Campeau JeffC at massmedia.com
Mon Dec 10 13:48:22 PST 2007


That's because the -f flag would only work if ... was the name of a
single file you are trying to add. -f doesn't enable any wildcard
processing, it just forces Perforce to accept file names that contain
wildcard characters. So with -f you can add the file foo%bar.txt. Adding
such a file is just asking for headaches though.

-Jeff

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Roy Smith
Sent: Monday, December 10, 2007 11:23 AM
To: Gabor Maghera
Cc: Perforce User
Subject: Re: [p4] Can't add filenames with wildcards [@#%*] in them.

That just gets me:

free:2.5.1$ p4 add -n -f ...
Can't add filenames with wildcards [@#%*] in them.
Use -f option to force add.


On Dec 10, 2007, at 2:19 PM, Gabor Maghera wrote:

> Try using p4 add -n -f ...
>
> The -f flag will allow files with special characters in their  
> filename and the -n flag will display which files would be opened  
> for add without making any changes.  Then browse through the output  
> of the command.
>
> Take a look at the help for p4 add before doing this, as the  
> special characters in the filenames are going to be formatted into  
> hex representation. Not sure if the p4 add output will show you the  
> original file names or the modified one.
>
> Cheers,
> Gabor
>
> On Dec 10, 2007 10:53 AM, Roy Smith <smith_roy at emc.com> wrote:
> I'm trying add a new source tree to my depot by doing "p4 add ...",
> but get the message:
>
> Can't add filenames with wildcards [@#%*] in them.
>
> As far as I can tell, I don't have any filenames with those
> characters in them.  Is there any way to have p4 tell me exactly
> which pathnames it's not happy with?
>
> -------------------
> Roy Smith <smith_roy at emc.com>
> Software Guy, EMC Common Management Group
> 44 South Broadway, 7th floor
> White Plains, NY 10601
> (914) 580-3427
> AIM: roysmith649
>
> _______________________________________________
> perforce-user mailing list  -   perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>

-------------------
Roy Smith <smith_roy at emc.com>
Software Guy, EMC Common Management Group
44 South Broadway, 7th floor
White Plains, NY 10601
(914) 580-3427
AIM: roysmith649

_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user



More information about the perforce-user mailing list