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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: EPICS server won't boot when there is no newline at the ending of st.cmd |
From: | "Johnson, Andrew N. via Tech-talk" <[email protected]> |
To: | 黄佳伟 <[email protected]>, EPICS Tech Talk <[email protected]> |
Date: | Tue, 19 Nov 2019 17:16:08 +0000 |
Hi Jasper, On 11/19/19 7:18 AM, 黄佳伟 via Tech-talk wrote:
EPICS relies on the Posix standard for many things, and when a stream of characters doesn't end in a newline it isn't classified as a line of text according to Posix, see this stack-overflow answer. The lines in a st.cmd file are interpreted by the IOC Shell, iocsh, which also handles commands that are typed in from the IOC console using exactly the same code. The API in libCom that we use for that interfaces with GNU readline and other line-editing libraries so the IOC console can support command-line recall and editing, and what the specific library in use does when it gets an EOF directly affects how the iocsh behaves. I don't see this as a bug myself, but EPICS is Open Source and you are welcome to develop and propose a change to the code in Base to fix it if you wish. - Andrew -- Complexity comes for free, Simplicity you have to work for. |