ash syntax error in nested case ... esac

Alexander Kriegisch Alexander at Kriegisch.name
Sun Oct 7 08:24:21 PDT 2007


BB 1.7.2, ash, mipsel platform, kernel 2.6.13.1

I took the attached example script right from
http://busybox.net/downloads/BusyBox.html, originally because I wanted
to test the getopt command. I slightly modified it, but this does not
influence the outcome.

$ ./getopt.test
./getopt.test: line 14: syntax error: ";;" unexpected (expecting "done")

Another minimum example for a nested case-esac construct is in the
second attachment 'foo'. No errors there.

Is there something wrong with the 'while' loop?
--
Alexander Kriegisch
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: getopt.test
Url: http://busybox.net/lists/busybox/attachments/20071007/ee3f3378/attachment.ksh 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: foo
Url: http://busybox.net/lists/busybox/attachments/20071007/ee3f3378/attachment.diff 


More information about the busybox mailing list