On Tue, 2007-07-31 at 19:51 +0000, Thorsten Glaser wrote:
> [EMAIL PROTECTED] dixit:
>
> >fix bashism in the busybox buildsystem again
>
> Uh, I don't know what's your issue, but…
Maybe "bash"ism is the wrong term for it, but…
> >+-function try {
>
> … “function foo {” is supported in Korn Shell (actually, native Korn syntax),
> and I think in bash too. (Wrong would be “function foo() {” though.)
… i have no idea what works in korn shell, i only had a look at IEEE Std
1003.1, 2004 Edition and found no reference to some buildin function
"function". /bin/sh should only require a POSIX-compilant shell, not a
bash nor a korn (nor a mir*) shell.
It is even changed like this in the busybox trunk since months (commit
message: "stop using bash'isms ('function')"), but sadly not in the 1.4
tree. Until this happens, we have to patch it. Whenever we change to a
newer major version, this can happily be dropped.
> My guess: Use of dash as /bin/sh?
Exactly, i use dash as /bin/sh. Maybe all of you should get a "better" /bin/sh,
too =P
Bye,
ulmen
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers