syntax error near unexpected token `fi'Pop QuizThe following statements generates "line 1: syntax error near unexpected token `fi'" error message in BASH. if [ ${argNumValid} -eq 0 ] What's the failue? AnswerThe if-statement is missing the "then" keyword on the second line. The correct statements: if [ ${argNumValid} -eq 0 ] Mel
Did your message disappear? Read the Forums FAQ. Add Comment
TrackBackTrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here. Messages, files, and images copyright by respective owners. |
Products
|
Services
74 Users Online
![]() |
Copyright © 1996 - 2025. All Rights Reserved. |