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: Bill Cruise <[email protected]>
To: Brian McAllister <[email protected]>
Cc: [email protected], Epics Tech-Talk <[email protected]>
Date: Tue, 28 May 2002 10:09:51 -1000

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

Replies:
Re: error in caput ("caputting negative numbers") Matthieu Bec
References:
Re: error in caput ("caputting negative numbers") Brian McAllister

Navigate by Date:
Prev: Re: EPICS Base 3.13.6 Caveat Tim Mooney
Next: Re: error in caput ("caputting negative numbers") Matthieu Bec
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") Brian McAllister
Next: Re: error in caput ("caputting negative numbers") Matthieu Bec
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 ·