Bug 14436 - syntax error: unexpected "fi" (expecting "then")
Summary: syntax error: unexpected "fi" (expecting "then")
Status: RESOLVED DUPLICATE of bug 14441
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: 1.33.x
Hardware: All Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-09 19:25 UTC by Mihaela Gentner
Modified: 2021-12-12 21:19 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
The script where the exception is triggered. (20.38 KB, text/x-sh)
2021-12-09 19:25 UTC, Mihaela Gentner
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***