7d1c7d8337
ash and hush correctly use the value of HOME for tilde expansion. However the line editing code in libbb obtains the user's home directory by calling getpwuid(). Thus tildes in tab completion and prompts may be interpreted differently than in tilde expansion. When the line editing code is invoked from a shell make it use the shell's interpretation of tilde. This is similar to how GNU readline and bash collaborate. function old new delta get_homedir_or_NULL 29 72 +43 optschanged 119 126 +7 hush_main 1204 1211 +7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 57/0) Total: 57 bytes v2: Always check for HOME before trying the password database: this is what GNU readline does. Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> |
||
---|---|---|
.. | ||
.gitignore | ||
applet_metadata.h | ||
applets.h.sh | ||
applets.src.h | ||
ar_.h | ||
bb_archive.h | ||
bb_e2fs_defs.h | ||
busybox.h | ||
dump.h | ||
fix_u32.h | ||
grp_.h | ||
inet_common.h | ||
libbb.h | ||
liblzo_interface.h | ||
platform.h | ||
pwd_.h | ||
rtc_.h | ||
shadow_.h | ||
unicode.h | ||
usage.src.h | ||
volume_id.h | ||
xatonum.h | ||
xregex.h |