Issue with Clip Library, Backslash before hot spot
Posted: Thu May 03, 2018 4:28 pm
I'm trying to define a set of Clip Library inserts to build command prompt rename commands.
The clipping should wrap a rename command around the selection, so that starting with a selection -
BadOldFilename.ext
we end with -
rename c:\users\me\desktop\BadOldFilename.ext GoodNewFilenameMask.ext
TextPad lets me do that - until I save the .TCL file and restart.
After restart, editing the clipping shows no 'after' portion and the 'before' portion suffixed with debris followed by the former 'after' portion.
As a diagnostic, I replace the trailing backslash in the 'before' portion with a percent character. That survives .TCL save and restart and produces -
rename c:\users\me\desktop%BadOldFilename.ext GoodNewFilenameMask.ext
That works as intended, but isn't useful.
Question: Have I missed something about escaping trailing backslashes or do we have a more unpleasant issue involving .TCL file read parsing?
Note - I report the issue as observed in 7.5.1(32). The behavior in 7.6.4(32) might be marginally different, but still incorrect.
The clipping should wrap a rename command around the selection, so that starting with a selection -
BadOldFilename.ext
we end with -
rename c:\users\me\desktop\BadOldFilename.ext GoodNewFilenameMask.ext
TextPad lets me do that - until I save the .TCL file and restart.
After restart, editing the clipping shows no 'after' portion and the 'before' portion suffixed with debris followed by the former 'after' portion.
As a diagnostic, I replace the trailing backslash in the 'before' portion with a percent character. That survives .TCL save and restart and produces -
rename c:\users\me\desktop%BadOldFilename.ext GoodNewFilenameMask.ext
That works as intended, but isn't useful.
Question: Have I missed something about escaping trailing backslashes or do we have a more unpleasant issue involving .TCL file read parsing?
Note - I report the issue as observed in 7.5.1(32). The behavior in 7.6.4(32) might be marginally different, but still incorrect.