EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Windows paths inside iocShell
From: Ralph Lange via Core-talk <core-talk at aps.anl.gov>
To: EPICS Core Talk <core-talk at aps.anl.gov>
Date: Wed, 14 Apr 2021 17:44:59 +0200
Question:

Under Windows, using system environment variables containing paths in the iocShell doesn't work, because backslash characters (\) in the path are interpreted as the first character of an escape sequence.

Example. Trying to set a location inside %AppData% by doing
epicsEnvSet FOO ${APPDATA}/foobar

creates an invalid path, because the backslashes disappear:
C:UsersnobodyAppDataRoaming/foobar  

Shouldn't backslashes rather be treated verbatim here?
The expansion is done by macLib before the epicsEnvSet command is being called. Do we need a modifier that allows verbatim macro replacement? The getenv() used by macLib converts '\' to '\\' when reading from the environment, but macLib seems to resolve (discard) the "escape sequence" further down in the process.

Cheers,
~Ralph


Replies:
Re: [EXTERNAL] Windows paths inside iocShell Kasemir, Kay via Core-talk

Navigate by Date:
Prev: Build failed in Jenkins: epics-example-mac #855 APS Jenkins via Core-talk
Next: Build failed in Jenkins: epics-example-linux32 #865 APS Jenkins via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Jenkins build is back to normal : epics-example-win64 #667 APS Jenkins via Core-talk
Next: Re: [EXTERNAL] Windows paths inside iocShell Kasemir, Kay via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 20 Apr 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·