syntax error at line ...

Document ID : KB000071737
Last Modified Date : 25/09/2018
Show Technical Document Details

While trying to stop, start, or check the status of the Nolio agent it returns the following error:
./ syntax error at line 1087: `(' unexpected

The error, depending on the operating system (SunOS above) will vary in the line number it mentions. AIX has been seen to have this error reflecting line 520.

CA Release Automation Agent 6.3 and above.

The problem stems from the script using #!/bin/bash while bash is not available on the system.

If the error message and cause are true for you then the following can be done to resolve the issue until it is officially resolved via the product:
  1. Change the first instruction from #!/bin/bash to #!/bin/sh 
  2. Search for and comment out the vercomp function.