BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001285 [BusyBox] Other major always 03-23-07 12:24 07-13-07 16:24
Reporter kiltedknight View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.4.x
Summary 0001285: Test suite: ash does not recognize shell script keyword "function"
Description The busybox test suite cannot be run on a system that uses busybox ash as its shell.

It would be nice to be able to run the test suite on a busybox-native system on which you can also build busybox.
Additional Information
Attached Files  bb-no-kw-function.diff [^] (574 bytes) 06-05-07 11:26

- Relationships

- 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.
 

- Issue History
Date Modified Username Field Change
03-23-07 12:24 kiltedknight New Issue
03-23-07 12:24 kiltedknight Status new => assigned
03-23-07 12:24 kiltedknight Assigned To  => BusyBox
03-23-07 12:25 kiltedknight Issue Monitored: kiltedknight
06-05-07 09:55 kiltedknight Note Added: 0002446
06-05-07 10:11 bernhardf Note Added: 0002448
06-05-07 10:41 kiltedknight Note Added: 0002450
06-05-07 10:50 bernhardf Note Added: 0002451
06-05-07 10:55 kiltedknight Note Added: 0002452
06-05-07 11:15 kiltedknight Note Added: 0002453
06-05-07 11:26 kiltedknight File Added: bb-no-kw-function.diff
06-05-07 11:26 kiltedknight Note Added: 0002454
06-05-07 15:29 vda Status assigned => closed
06-05-07 15:29 vda Note Added: 0002455
06-05-07 15:29 vda Resolution open => fixed
06-05-07 15:50 kiltedknight Status closed => feedback
06-05-07 15:50 kiltedknight Resolution fixed => reopened
06-05-07 15:50 kiltedknight Note Added: 0002456
07-13-07 16:24 vda Status feedback => closed
07-13-07 16:24 vda Note Added: 0002602
07-13-07 16:24 vda Resolution reopened => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker