Bug 14306 - ash: incorrect tilde expansion
Summary: ash: incorrect tilde expansion
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.33.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-01 17:32 UTC by D.G.
Modified: 2022-03-01 09:31 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description D.G. 2021-11-01 17:32:57 UTC
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/
Comment 1 Denys Vlasenko 2022-03-01 09:11:09 UTC
Fixed in git.