PowerTab
PowerTab copied to clipboard
UNC hidden shares are improperly escaped
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.
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.