Bug 5132 - ash: replace of escaped "/" does not work.
Summary: ash: replace of escaped "/" does not work.
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.19.x
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-21 18:18 UTC by alex hauras
Modified: 2015-10-29 19:52 UTC (History)
1 user (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 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}).