Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug report.

 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
JackFoo
Senior Member
Senior Member


Joined: 05 Feb 2003
Posts: 373
Location: ERROR

PostPosted: Mon Mar 31, 2003 11:18 am    Post subject: Bug report. Reply with quote

Hi just found a bug in TC, it happens with %O parameter in button bar. %O is used to output the current filename without extension however if you go to a dir and press CTRL+B (shows all files recursively) and use the button from there, %O passes not only the filename but also the dir from which the file comes (the dir isn't absolute but referenced to the start dir).

P.S. should I send it by email to Christian?

Cheers.
Back to top
View user's profile Send private message
norfie
Power Member
Power Member


Joined: 18 Feb 2003
Posts: 1194

PostPosted: Mon Mar 31, 2003 11:55 am    Post subject: Reply with quote



Last edited by norfie on Fri Sep 10, 2004 1:39 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
JackFoo
Senior Member
Senior Member


Joined: 05 Feb 2003
Posts: 373
Location: ERROR

PostPosted: Mon Mar 31, 2003 1:58 pm    Post subject: Reply with quote

How is it correct?? It plainly says in the help that %O outputs the name... Moreover not only does it put the dir but also prepends it with "\", so if I wanted to append %O to some other parameter I would have gotten to slashes!! BTW anyone knows if there is a parameter for current dir eg. if I'm in a dir [mydir] and compress some files TC helpfuly suggests mydir.rar for the archive, is there a prameter for this?

Cheers.
Back to top
View user's profile Send private message
norfie
Power Member
Power Member


Joined: 18 Feb 2003
Posts: 1194

PostPosted: Tue Apr 01, 2003 1:04 am    Post subject: Reply with quote



Last edited by norfie on Fri Sep 10, 2004 1:44 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
JackFoo
Senior Member
Senior Member


Joined: 05 Feb 2003
Posts: 373
Location: ERROR

PostPosted: Tue Apr 01, 2003 3:00 am    Post subject: Reply with quote

Quote:
Question: What is a filename?

Hmm there is only one definition here:
filename - a set of valid* chars. where valid* means they don't include "\" among other restrictions.

Quote:
IMO filename can include relative path - without it makes no sense in most cases.
Which advantages has a filename (without relative path) if I don't know where this file is located?

Well no disrespect meant but filename cannot (by definition) include path.
As to advantages, what does it matter?? In the help it states %O = filename _without extension_ now how would a filename without extension help you!? (if it does, extrapolate your answer to filename without path).

Cheers.
Back to top
View user's profile Send private message
norfie
Power Member
Power Member


Joined: 18 Feb 2003
Posts: 1194

PostPosted: Tue Apr 01, 2003 4:01 am    Post subject: Reply with quote



Last edited by norfie on Fri Sep 10, 2004 1:43 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
JackFoo
Senior Member
Senior Member


Joined: 05 Feb 2003
Posts: 373
Location: ERROR

PostPosted: Tue Apr 01, 2003 8:51 am    Post subject: Reply with quote

For two people to have a meaningful dialog/discussion they have to speak with the same logical rules, obviously we aren't on the same wave...

Quote:
That's your definition.

It's not mine but rather OS specific, and on every OS I know about it is correct.

Quote:
What is your pratical problem - or it is only a theoritical problem

Actually I was trying to find a way to automatically generate filenames, like TC does with archives (see my second post) this was an option.

Quote:
cmd /ctype %O.%E|sort>%O.srt

I don't know if you noticed but you used %E here, now I asked as to the usefulness of %O as a filename without extension as defined in the help.

Quote:
Conclusion: it's not a bug - it's a feature.

As I stated above, this is your conclusion not an objective one, thus it doesn't add much to the whole business.

Cheers.
Back to top
View user's profile Send private message
norfie
Power Member
Power Member


Joined: 18 Feb 2003
Posts: 1194

PostPosted: Tue Apr 01, 2003 9:54 am    Post subject: Reply with quote



Last edited by norfie on Fri Sep 10, 2004 1:42 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
JackFoo
Senior Member
Senior Member


Joined: 05 Feb 2003
Posts: 373
Location: ERROR

PostPosted: Tue Apr 01, 2003 12:01 pm    Post subject: Reply with quote

Oh, nevermind it's getting too lengthy, what I meant about the extension is that there was a reason why Christian splitted the %O and %E, the same reason I can see with the splitted filename and path. I'm not saying that relative path isn't useful, it's useful, what I'm saying is that %O should be filename and path should be in a different parameter.

Cheers.
Back to top
View user's profile Send private message
Valentino
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 665
Location: Ukraine

PostPosted: Tue Apr 01, 2003 6:10 pm    Post subject: Reply with quote

No blood please! Smile Iraq is enough...

I think the solution is evident - we need two paramters instead of current %O.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group