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 <2020> 2021 2022 2023 2024 2025 | 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 <2020> 2021 2022 2023 2024 2025 |
<== 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 On Wed, 15 Jan 2020 at 14:04, Saeed Haghtalab via Tech-talk <[email protected]> wrote:
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, |