Bug 14436

Summary: syntax error: unexpected "fi" (expecting "then")
Product: Busybox Reporter: Mihaela Gentner <mdvornic>
Component: NetworkingAssignee: unassigned
Status: RESOLVED DUPLICATE    
Severity: major CC: busybox-cvs
Priority: P5    
Version: 1.33.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: The script where the exception is triggered.

Description Mihaela Gentner 2021-12-09 19:25:04 UTC
Created attachment 9181 [details]
The script where the exception is triggered.

The following exception is raised sporadically while executing one of the shell scripts with busybox 1.34 version : 

/sbin/internet.sh: line 438: syntax error: unexpected "fi" (expecting "then")

The occurrence of the issue is rare, normally the script internet.sh executes without problems. When the exception is triggered, there is no special branch executing on the script.   

Code snippet from internet.sh attached.
Comment 1 Denys Vlasenko 2021-12-12 21:19:45 UTC

*** This bug has been marked as a duplicate of bug 14441 ***