diff options
author | Ron Yorston <rmy@pobox.com> | 2020-06-29 11:46:43 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-06-29 11:46:43 +0100 |
commit | 9114e110a59a77909132af6d97bccdf5056adfa4 (patch) | |
tree | dc731daf69d0d92d4c08231f97bc0a7b433097ea /win32 | |
parent | 4f4e9e0d3366ec607d8765278b9753e41bdd544f (diff) | |
download | busybox-w32-9114e110a59a77909132af6d97bccdf5056adfa4.tar.gz busybox-w32-9114e110a59a77909132af6d97bccdf5056adfa4.tar.bz2 busybox-w32-9114e110a59a77909132af6d97bccdf5056adfa4.zip |
ash: avoid duplicated slashes in output of type/command builtins
Microsoft developers have a penchant for adding trailing slashes to
entries in PATH:
C:/Windows/System32/WindowsPowerShell/v1.0/
C:/Windows/System32/OpenSSH/
The 'type' and 'command -v' shell builtins return paths with duplicated
slashes for executables in those directories. See GitHub issue #191.
Bonus fixes:
- handle backslashes as well as slashes in concat_path_file()
- convert backslashes to slashes in the output of 'type', 'command -v'
Diffstat (limited to 'win32')
0 files changed, 0 insertions, 0 deletions