Bug 5132

Summary: ash: replace of escaped "/" does not work.
Product: Busybox Reporter: alex hauras <d77190>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: 1.19.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description alex hauras 2012-04-21 18:18:53 UTC
basic symbols:
bash:
$ VAR="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ; EE=${VAR//a/b}; echo $EE
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
busybox ash:
$ VAR="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ; EE=${VAR//a/b}; echo $EE
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

escaped special symbols:
bash:
$ VAR="//////////////////////////////////" ; echo ${VAR//\//\\\/}
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
busybox ash:
$ VAR="//////////////////////////////////" ; echo ${VAR//\//\\\/}
//////////////////////////////////
Comment 1 Ron Yorston 2015-07-20 12:07:53 UTC
This is fixed in 1.24 by commit 417622c (ash: fix breakage of ${v/pat/str}).