EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Multiline statement in iocsh
From: Saeed Haghtalab via Tech-talk <[email protected]>
To: Ralph Lange <[email protected]>, EPICS Tech Talk <[email protected]>
Date: Wed, 15 Jan 2020 15:28:57 +0000

That’s right. I’ve put the comments in each line deliberately because I think since startup script mostly contains the commands and configuration (and not code) with many arguments and macro substitution, I think it makes sense to support inline comment in multiline statement in this case which helps in readability a lot.

Maybe semi multiline statement is a better term …

 

/Saeed

 

From: Ralph Lange via Tech-talk
Sent: Wednesday, January 15, 2020 2:14 PM
To: EPICS Tech Talk
Subject: Re: Multiline statement in iocsh

 

On Wed, 15 Jan 2020 at 14:04, Saeed Haghtalab via Tech-talk <[email protected]> wrote:

Is there any possibility to have multi-line statements in startup script like this:

 

dbLoadRecords(“myDb.db”, \     # First comment

                                “P=prefix, \         # Second comment

                                R=suffix”)            # third comment

 

Note that AFAIK multi-line statements in other interpreters (like shells) require the newline character to appear immediately after the backslash, so your example would *not* be a multi-line statement.

 

Cheers,
~Ralph

 

 


References:
Multiline statement in iocsh Saeed Haghtalab via Tech-talk
Re: Multiline statement in iocsh Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: Multiline statement in iocsh Hinko Kocevar via Tech-talk
Next: Re: Multiline statement in iocsh Konrad, Martin via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Multiline statement in iocsh Hinko Kocevar via Tech-talk
Next: Re: Multiline statement in iocsh Konrad, Martin via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 15 Jan 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·