Backslashed escape sequences
Roy Marples
roy at marples.name
Mon Sep 22 22:56:27 UTC 2008
On Monday 22 September 2008 22:50:10 Denys Vlasenko wrote:
> Admit it, both things are important:
>
> * Following standards is important when you write code,
> otherwise it will be difficult to support it
Agreed :)
>
> * Being able to support some extensions dialects of a particular shell
> is important is you have a big body of shell code you need to
> run, and you just can't rewrite it all in purely standard shell.
>
> Different situations, different needs.
Ah, but Mr Landley expects this to work
#!/bin/sh
foo="bar"
dead="${foo//ar/eef}"
if [[ ${foo} == ${dead} ]]; then
echo -e "foo is dead beef\n"
else
echo -e "foo is not dead beef\n"
fi
I have no issues if you want to wang bash into bb, but please don't go
pretending that /bin/sh is bash :)
Thanks
Roy
More information about the busybox
mailing list