Skip to content

Fix handling of iocInit in iocsh.bash

Wayne Lewis requested to merge e3-547-update_iocinit_in_iocsh_bash into master

Allow user to override automatic addition of iocInit to IOC startup script. This option will override the addition of iocInit if it is not present (in a valid form) in the IOC startup script. It will not override a valid iocInit command in the script. In other words, it prevents iocsh.bash from adding iocInit, but does not remove an existing iocInit from the provided startup script.

Fix pattern used to match iocInit in provide startup script. This has been updated to match only a valid command in the script that will be processed as an IOC shell command to start the IOC. Previously, it would have matched the iocInit text in a comment or function call or anywhere in the file.

The usage text has been updated with the following changes:

  • add realtime option
  • add iocInit override option
  • reorder to match order in function

Finally, a number of typos in comments have been fixed (not directly associated with this issue, but included here anyway).

Merge request reports

Loading