diff options
author | Ron Yorston <rmy@pobox.com> | 2023-10-25 09:11:34 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-10-25 09:11:34 +0100 |
commit | 4e21b98252d61c524048f6b1d561aba522ed5baa (patch) | |
tree | cf428989f83f70feee3cae92a7f08ff37817e984 /TODO | |
parent | e0fd5d3c112df92b3d104b519ed09770f24d2ecf (diff) | |
download | busybox-w32-4e21b98252d61c524048f6b1d561aba522ed5baa.tar.gz busybox-w32-4e21b98252d61c524048f6b1d561aba522ed5baa.tar.bz2 busybox-w32-4e21b98252d61c524048f6b1d561aba522ed5baa.zip |
lineedit: normalise HOME for use in prompt
The code to replace the user's home directory with '~' in the
prompt didn't allow for the possibility of the HOME environment
variable having backslashes in the path.
Convert backslashes to forward slashes in HOME. This isn't necessary
if the home directory is obtained from getpwuid(3) as it's already
converted there.
Adds 24-32 bytes.
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions