The trailing backslash of %P confuses the latest version of git-bash
Moderators: Hacker, petermad, Stefan2, white
The trailing backslash of %P confuses the latest version of git-bash
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?
Re: The trailing backslash of %P confuses the latest version of git-bash
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.
%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.