Notes |
(0002446)
kiltedknight
06-05-07 09:55
|
Any updates? |
| |
(0002448)
bernhardf
06-05-07 10:11
|
I once fixed this but landley yelled at me and reverted it.
Care to send a patch which drops those silly "function" keywords and makes the scripts overall nicer?
Nicer as in testing integers with -lt, -eq et al, making sure that assignments of strings are quoted (foo="$blah" and not foo=${blah} )
TIA |
| |
(0002450)
kiltedknight
06-05-07 10:41
|
Well, I can try... but it also apparently wants pushd and popd, both of which are bash internals. :/ |
| |
(0002451)
bernhardf
06-05-07 10:50
|
saving the pwd away and later cd'ing there should do, or cd -
See? |
| |
(0002452)
kiltedknight
06-05-07 10:55
|
I've been trying to find a man page for ash so I could see what the equivalent is... you may have just saved me a little time. Let me see what I can do. |
| |
(0002453)
kiltedknight
06-05-07 11:15
|
OK... we also do not have the equivalent of the -I option in grep...
-I Process a binary file as if it did not contain matching data; this is equivalent to the --binary-files=without-match option. |
| |
(0002454)
kiltedknight
06-05-07 11:26
|
The uploaded diff will alter how two shell script functions are declared... using "funcname ()" instead of "function funcname" |
| |
(0002455)
vda
06-05-07 15:29
|
Aplied to rev 18750, thanks! |
| |
(0002456)
kiltedknight
06-05-07 15:50
|
The keyword "function" is not the only issue with not being able to run the test suite under ash.
There are keywords "pushd," "popd," the fact that you must have xargs compiled to support the "-0" (zero) option, and a whole bunch of other things. |
| |
(0002602)
vda
07-13-07 16:24
|
Testsuite indeed now runs with full-blovn busybox. Making it work with any conceivable .config is a big task, don't think we can do it. |
| |