The solution is a backslash in front of the percent sign.

cache/7/78/ns0%3ASimpsonspedia.html.gz
 
Matt
 
 
 
Sent: Saturday, December 4, 2021 5:24 PM
Subject: [MediaWiki-l] Re: Cache Mediawiki 1.37.0
 
doesn’t work

/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
 
Matt
 
 
Sent: Saturday, December 4, 2021 3:01 PM
Subject: [MediaWiki-l] Re: Cache Mediawiki 1.37.0
 
Use quote marks (sounds like % has special meaning to your shell)
 
rm 'cache/7/78/ns0%3ASimpsonspedia.html.gz'
 
-
Brian

On Saturday, December 4, 2021, Support Simpsonspedia <support@simpsonspedia.net> wrote:
Hello,
since 1.37.0 exists in my wiki the name space in front of filename ns0%3ASimpsonspedia.html.gz
 
If I use the cron job /usr/bin/rm  [...]/cache/7/78/ns0%3ASimpsonspedia.html.gz I’ve got the error message /usr/bin/rm: cannot remove ‘[...]/cache/7/78/ns0’: No such file or directory.

All after ns0 is missed. I encode %3A to :

If I use the cron job /usr/bin/rm  [...]/cache/7/78/ns0:Simpsonspedia.html.gz I’ve got the error message /usr/bin/rm: cannot remove ‘[...]/cache/7/78/ns0:Simpsonspedia.html.gz’: No such file or directory.
Where is my mistake?

Best regards
Matt


_______________________________________________
MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/


_______________________________________________
MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/