Syntax error near unexpected token `(‘

bashscript

I was given a script to automate some processes. This script gets executed on a Mac in Terminal. The script is a bash script.

However, Terminal is showing

syntax error near unexpected token `('

in

ManagerDaemon="/Library/LaunchDaemons/com.graphisoft.PortalServerService-v24.0(Manager-2020-07-21).plist"

What could be the issue? How can I remove the error?

Best Answer

ok, so I think the answer has to do with "curly" quotes or "smart" quotes as opposed to "straight" quotes.

I had been using a text editor to edit the script. However, when I switched to an actual code editor, it noticed several "curly" quotes. I replaced those with straight quotes and all is well.