On busybox 1.33.1, tilde expansion incorrectly alters words when the tilde-prefix matches no valid login name (note the missing ending slash): $ ash -c 'echo ~~nouser/' ~~nouser $ bash -c 'echo ~~nouser/' ~~nouser/
Fixed in git.