Am 24.11.2016 00:38, schrieb Denys Vlasenko: > On Tue, Nov 22, 2016 at 6:17 PM, walter harms <wha...@bfs.de> wrote: >> busybox 1.25.0 >> $ TEST="[ \t\r]" >> $ echo ${TEST%]} >> [ \t\r >> $ echo ${TEST#[} >> [ \t\r] >> >> GNU bash, version 3.2.39 >> $ TEST="[ \t\r]" >> echo ${TEST%]} >> [ \t\r >> echo "${TEST#[}" >> \t\r] >> >> It seems that ${#} does not eat [: >> TEST="[[[[" ; echo "${TEST#[}" >> [[[[ >> TEST="[[[[" ; echo "${TEST#[}" >> [[[ > > Reproduced. Looks like a bug in uclibc: > > pmatch("[","[") returns 0 "no match", > > but in glibc, it returns 1. >
sorry, i have tested with glibc ldd busybox linux-vdso.so.1 => (0x00007fff2158a000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f952f623000) libc.so.6 => /lib64/libc.so.6 (0x00007f952f2ca000) /lib64/ld-linux-x86-64.so.2 (0x00007f952f860000) re, wh _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox