ZTree.com  | ZEN  | About...  

 Index   Back

Not a bug, CO-4H, use wildcard or find-and-replace   [Bug]

By: Ben Kent       
Date: Mar 11,2024 at 20:27
In Response to: [Bug] rename file that starts with a period (Donald_SBC)

> Maybe a bug?
>
> File .NETFramework,Version=v4.8.AssemblyAttributes.vb
>
> trying to rename to .NETFramework,Version=v4.8.AssemblyAttributes.vb1
>
> End up with
> .NETFramework,Version=v4.8.AssemblyAttributes.NETFramework,Version=v4.8.AssemblyAttributes.vb1
>
> Trying to rename back to vb gets
> .NETFramework,Version=v4.8.AssemblyAttributes.NETFramework,Version=v4.8.AssemblyAttributes.NETFramework,Version=v4.8.AssemblyAttributes.vb
>
> every naming action tacks another
> .NETFramework,Version=v4.8.AssemblyAttributes to the file name.

Donald

For me with version v2.4.217 and this config option
CO-4H Treat leading "." as "*."=No
renaming to .NETFramework,Version=v4.8.AssemblyAttributes.vb1 works

Toggling the option, gives the behaviour your are seeing, given the description of the option, with it enabled, the behaviour you are seeing is what the option says you will get. i.e. not a bug, but unlikely to be desired behaviour.



Either change the option, or use one of these methods

1. Wildcard the name, and change the extension
*.vb1

2. Use find-and-replace on the extension
"vb"vb1"e
".vb".vb1"x

see "3.3.2 Rename Find-and-Replace" in the help file

Ben

144 views      
 

Messages in this Thread

 
96,640 Postings in 12,231 Threads, 350 registered users, 55 users online (0 registered, 55 guests)
Index | Admin contact |   Forum Time: Apr 12, 2024 - 2:17 pm UTC  |  Hits:62,817,723  (13,254 Today )
RSS Feed