[TC 11.57a pre1] cm_Edit /N="<template", folder is sent to editor when template result is nothing

Bug reports will be moved here when the described bug has been fixed

Moderators: Stefan2, Hacker, petermad

Post Reply
User avatar
white
Power Member
Power Member
Posts: 6940
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC 11.57a pre1] cm_Edit /N="<template", folder is sent to editor when template result is nothing

Post by *white »

Execute:

Code: Select all

cm_Edit /CN="<[N1,0]"
Result: Filename is not accepted (error: "<path length = 0>")
Execute:

Code: Select all

cm_Edit /GCN="<[N1,0]"
Result: Editor is launched without filename passed to it.
Execute:

Code: Select all

cm_Edit /N="<[N1,0]"
Result: Editor is launched with current folder passed to it. (In case the editor is Notepad++, this opens all files in the folder.)
When the result of a template is a filename, the folder name is prepended to it before it is passed to the editor.
When the result is no filename, TC should not prepend the folder name.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53138
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.57a pre1] cm_Edit /N="<template", folder is sent to editor when template result is nothing

Post by *ghisler(Author) »

I'm currently only checking for errors in the name, not for zero length names. The following command will have the same effect:

Code: Select all

cm_Edit /N=""
I will add code to show an error when the name is empty.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 6940
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.57a pre1] cm_Edit /N="<template", folder is sent to editor when template result is nothing

Post by *white »

15.05.26 Fixed: Show error "Path length = 0!" when user passes empty name to cm_Edit, e.g. /N="", or the passed template results in an empty name, e.g. /N="<[N1,0]" (32/64)
Tested OK using TC 11.57a pre2 32-bit and 64-bit.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53138
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.57a pre1] cm_Edit /N="<template", folder is sent to editor when template result is nothing

Post by *ghisler(Author) »

Please re-check with Total Commander 11.57a RC1!
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 6940
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.57a pre1] cm_Edit /N="<template", folder is sent to editor when template result is nothing

Post by *white »

Tested OK using TC 11.57a rc1 32-bit and 64-bit.

Moderator message from: white » 2026-05-20, 14:21 UTC

Moved topic
» from TC11.x bug reports (English) to TC Fixed bugs
Post Reply