Bug 14306

Summary: ash: incorrect tilde expansion
Product: Busybox Reporter: D.G. <dg+busybox>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs, dg+busybox
Priority: P5    
Version: 1.33.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

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.