Hi,
I recently encountered an error when running the EPICS database for a soft IOC:
Error: syntax error
at or before "substitute" in file "db/bl201-UBMatrixAxes.db" line 501
I was trying to nest template files using the substitute command. The error I encountered was essentially the same error described in this Tech-Talk question:
https://epics.anl.gov/tech-talk/2016/msg00642.php
I eventually found that my .template file had CRLF line endings (I am running the IOC under Linux and used the ‘file’ command to check this). After I changed the line endings to be standard Linux line endings
(using the dos2linux command), I no longer received this error and was able to use nested .template files.
I’m hoping this information will help someone else with a similar issue, so I’m mentioning it here. I couldn’t figure out how to add a reply to the archived message from 2016.
Thanks,
Ray
Ray Gregory
Oak Ridge National Laboratory