The trailing backslash of %P confuses the latest version of git-bash

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
velo
Junior Member
Junior Member
Posts: 4
Joined: 2003-10-30, 22:27 UTC

The trailing backslash of %P confuses the latest version of git-bash

Post by *velo »

Using %P with git-bash does not work anymore. The backslash confuses the latest version of git-bash. Can you consider adding another parameter like %P but without a backslash at the end?
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: The trailing backslash of %P confuses the latest version of git-bash

Post by *Stefan2 »

With more recent TC versions you can try to use
%P:~0,-1
to remove the last sign, here the trailing backslash.



Or this trick:
Try %P. with the dot after it. The dot means "current dir", and most programs will accept it.




- - -
Jun 10, 2021 - Total Commander 10.00 final is available now!
All placeholders in button bar or start menu like %N, %P now support substring fields
in the form :~start,end, e.g. %N:~2,5 (5 characters from the second) or %N:~-8,5 (5 from the 8-last)
To append a number directly after the length value, use another ~ character, e.g. %N:~2,5~2.
Negative vaules are measured from the end of the string.
Example: %P:~0,-1 cuts off the backslash from the path.

 
Post Reply