ash/stty usage
James Simmons
jsimmons at infradead.org
Mon Jun 16 13:36:19 UTC 2008
> Smaller testcase:
>
> a='a<b'
> b='\033#'
> r=${a//</$b}
> echo $r
>
> Results:
>
> # sh zz
> a\033#b
> # ./busybox ash zz
> aK#b
>
> '<' is not special. Replacing 'b' in 'abc' would work the same.
> The culprit is '\' in replacement.
>
> BTW: I found out who's the author of ${var//s/r} code in ash. It's... you:
:-(
> r21481 | vda | 2008-03-25 02:17:40 +0100 | 17 lines
>
> ash: optional bash-like pattern subst and substring opts
> (by James Simmons <jsimmons AT infradead.org>)
> TODO: write testsuite!
The patch is much nicer than mine. Unfortunely it still doesn't work.
Will track it down today.
More information about the busybox
mailing list