[GH-ISSUE #175] [BUG] "& in the name"-issue #173

Closed
opened 2026-02-25 21:32:47 +03:00 by kerem · 2 comments
Owner

Originally created by @ZPMU on GitHub (Sep 27, 2023).
Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/175

Originally assigned to: @clechasseur on GitHub.

Describe the bug
A "&" in the name of a (custom) command will be swallowed when the context menu appears.
A "&&" in the name will be reduced to "&".

To Reproduce
Steps to reproduce the behavior:

  1. Path Copy Copy 19.0 is installed
  2. Open context menu, enter the "Path Copy" sub menu, choose "Settings…"
  3. Create a "new" command based on arbitrary base command; enter for "Name": "A & B"; OK (2 times).
  4. Open context menu: The newly created entry reads "A  B".
  5. Enter again the Settings window, now "Edit" the newly created custom command and change the name to "A && B". Nod through.
  6. Open context menu: The newly created entry reads "A & B".

Expected behavior
For whatever reason this "&"-swallowing happens (suppose it has to do with context menu handling API), it should be hidden from the user. Neither one should be faced with the fact that one has to repeat the "&" in order to let it appear at all; nor one should have to deal with the double "&" of custom command entries when handling them in PCC's windows.

Software (please complete the following information):

  • OS: Windows 10
  • Path Copy Copy Version 19.0
Originally created by @ZPMU on GitHub (Sep 27, 2023). Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/175 Originally assigned to: @clechasseur on GitHub. **Describe the bug** A "&" in the name of a (custom) command will be swallowed when the context menu appears. A "&&" in the name will be reduced to "&". **To Reproduce** Steps to reproduce the behavior: 0. Path Copy Copy 19.0 is installed 1. Open context menu, enter the "Path Copy" sub menu, choose "Settings…" 2. Create a "new" command based on arbitrary base command; enter for "Name": "A & B"; OK (2 times). 3. Open context menu: The newly created entry reads "A  B". 4. Enter again the Settings window, now "Edit" the newly created custom command and change the name to "A && B". Nod through. 5. Open context menu: The newly created entry reads "A & B". **Expected behavior** For whatever reason this "&"-swallowing happens (suppose it has to do with context menu handling API), it should be hidden from the user. Neither one should be faced with the fact that one has to repeat the "&" in order to let it appear at all; nor one should have to deal with the double "&" of custom command entries when handling them in PCC's windows. **Software (please complete the following information):** - OS: Windows 10 - Path Copy Copy Version 19.0
kerem 2026-02-25 21:32:47 +03:00
  • closed this issue
  • added the
    fixed
    bug
    labels
Author
Owner

@clechasseur commented on GitHub (Sep 28, 2023):

This has been fixed in v20.0, although strangely it wasn't documented in the HISTORY file:

https://github.com/clechasseur/pathcopycopy/blob/v20.0/PathCopyCopy/src/PathCopyCopyContextMenuExt.cpp#L818-L820

<!-- gh-comment-id:1738396726 --> @clechasseur commented on GitHub (Sep 28, 2023): This has been fixed in v20.0, although strangely it wasn't documented in the `HISTORY` file: https://github.com/clechasseur/pathcopycopy/blob/v20.0/PathCopyCopy/src/PathCopyCopyContextMenuExt.cpp#L818-L820
Author
Owner

@ZPMU commented on GitHub (Sep 29, 2023):

Thanks anyway!

<!-- gh-comment-id:1740536231 --> @ZPMU commented on GitHub (Sep 29, 2023): Thanks anyway!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pathcopycopy#173
No description provided.