• Home
  • Map
  • Email: mail@besthelp.duckdns.org

Syntax error near unexpected token fi fi

Otherwise they are. In short: spelling error: it' s then, not than. Longer story: the syntax of the if command is this ( boldface characters mark words that cannot be. I have been trying to write a script to verify the integrity of backed up files but have run in to a problem it gives syntax error near unexpected. bsh: line 6: syntax error near unexpected token ` fi' Test. bsh: line 6 : ` fi'. what wrong with my script? Im connecting to our Solaris. checking pkg- config is at least version 0. / configure: line 13617: syntax error near unexpected token fi'.

  • Syntax error in query
  • System error 5 starting service
  • Parse error syntax error unexpected usuario t variable
  • Android error process system isn t responding
  • Mysql sql syntax error near declare

  • Video:Error syntax token

    Unexpected error token

    / configure: line 13617: fi'. Perhaps you' ve got an extra linefeed after the fi or something? Can you check with cat - v or simply create a new script and copy/ paste the. touch $ HOME/ cron. log fi i am getting error as follows on the last line we are getting. " syntax error near unexpected token ` fi' " please suggest. I can only guess now, but this would happen in restricted( limited) shell, like when bash is executed via sh link, or when run with bash - r. I removed the blank lines and get a syntax error scripts/ backup. sh: line 37: syntax error near unexpected token ` fi' scripts/ backup. sh: line 37: ` fi". As well as having then on a new line, you also need a space before and after the [, which is a special symbol in BASH. / bin/ bash echo.