EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  <20022003  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  <20022003  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: error in caput ("caputting negative numbers")
From: Matthieu Bec <[email protected]>
Cc: Epics Tech-Talk <[email protected]>
Date: Tue, 28 May 2002 10:24:44 -1000
you may also use -- so whatever remains on the line isn't interpreted as
options:
caput -- channelName.VAL -1

Matthieu



Bill Cruise wrote:
> 
> Brian McAllister wrote:
> >
> > >>> On 5/27/2002 at 16:29:19 EDT, Vitaliy Ziskin wrote:
> >
> >   > I try do the following :
> >
> >   > caput channelName.VAL -1
> >
> >   > and get the following:
> >
> >   > caput: invalid option -- 1
> >   > Old : channelName.VAL           0.00
> >
> >   > What's going on?
> >
> > You're on GNU/Linux.
> >
> > ...
> >
> > The work-around is to put
> >
> >     setenv POSIXLY_CORRECT
> >
> > in your shell startup.
> >
> 
> Another work-around is to put the negative value in quotes,
> with a space between the opening quote and the minus sign,
> like so:
> 
> caput channelName.VAL " -123"
> 
> This keeps unfriendly parsers away from your argument.  :-)
> 
> --
> 
> William L. Cruise                             [email protected]
> Electronics System Supervisor                   FAX:    808 885-7288
> Canada-France-Hawaii Telescope                  Voice:  808 885-3121
> 65-1238 Mamalahoa Highway         http://www.cfht.hawaii.edu/~cruise
> Kamuela, HI   96743


-- 
Matthieu Bec              Gemini Observatory
Tel: +1 808 9742557       670 N. A'ohoku Place
Fax: +1 808 9359235       Hilo, Hawaii 96720, USA

References:
Re: error in caput ("caputting negative numbers") Brian McAllister
Re: error in caput ("caputting negative numbers") Bill Cruise

Navigate by Date:
Prev: Re: error in caput ("caputting negative numbers") Bill Cruise
Next: Re: EPICS Base 3.13.6 Caveat Ralph . Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: error in caput ("caputting negative numbers") Bill Cruise
Next: Re: error in caput ("caputting negative numbers") Ben-chin K. Cha
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·