[Bug 2695] New: pattern substitution fails if pattern contains slashes
bugzilla at busybox.net
bugzilla at busybox.net
Mon Oct 11 00:12:09 UTC 2010
https://bugs.busybox.net/show_bug.cgi?id=2695
Summary: pattern substitution fails if pattern contains slashes
Product: Busybox
Version: unspecified
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Standard Compliance
AssignedTo: unassigned at busybox.net
ReportedBy: ziapannocchia at gmail.com
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
s939 ~ # chroot busybox bin/sh
/ # busybox|head -n1
BusyBox v1.15.3 (2010-09-20 13:10:56 CEST) multi-call binary
/ # find . -exec ls -l {} \;
drwxr-xr-x 2 0 0 2048 Oct 10 23:49 bin
-rwxr-xr-x 1 0 0 2062112 Sep 20 11:11 busybox
lrwxrwxrwx 1 0 0 7 Oct 10 23:49 sh -> busybox
-rwxr-xr-x 1 0 0 2062112 Sep 20 11:11 ./bin/busybox
lrwxrwxrwx 1 0 0 7 Oct 10 23:49 ./bin/sh -> busybox
/ # #example with pattern containing slashes:
/ # var="/dev/ram0"
/ # echo ${var////-}
/dev/ram0
/ # #example with pattern not containing slashes:
/ # var="|dev|ram0"
/ # echo ${var//|/-}
-dev-ram0
/ # exit
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list