PowerTab icon indicating copy to clipboard operation
PowerTab copied to clipboard

UNC hidden shares are improperly escaped

Open jasonmarcher opened this issue 7 years ago • 1 comments

Observed behavior

Typing the following

PS> dir \HOSTNAME\c$\<TAB><SELECT ANY ENTRY><ENTER> 

causes the following:

PS> dir "\HOSTNAME\c`$\MyFavoriteDirectory" 

Notice the extra backtick escaping the $, which is in fact part of the path.

Expected Behavior

UNC paths that contain $ as a valid part of their path are not escaped. This can be detected if the $ immediately preceeds a \

Originally reported on CodePlex by jonhclark.

jasonmarcher avatar Dec 31 '17 05:12 jasonmarcher

Going to defer this issue. It appears to still be functional and the method of detecting special characters would have to change to identify all occurrences so that a more sophisticated decision can be made.

jasonmarcher avatar Sep 08 '18 02:09 jasonmarcher