Yes, you must "wrap" an option value that contains spaces (so that the
STAF command parser knows when an option value begins and ends) using
either double quotes, or the length delimited format that is of the form
:<Length>:<String> for which STAF provides wrapData() APIs for
programming languages such as C++, Java, Perl, Python, and Tcl. This is
true forr any option value containing spaces that you specify for a STAF
service request (not just the VAR SET request). See section "7.2 Option
Value Formats" in the STAF User's Guide at
http://staf.sourceforge.net/current/STAFUG.htm#HDROVFORM for more
information.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
Raymond Kroeker <raykroe...@gmail.com>
02/17/2010 06:24 PM
Please respond to
raykroe...@gmail.com
To
staf-users@lists.sourceforge.net
cc
Subject
[staf-users] Set Variable Multiple Space(s)
When I set a variable with multiple sequential spaces in the value
then pull back the variable later the extra spaces are collapsed. For
example:
---------------------------------------------------------
$ STAF local var set system var multi-space=one two three
$ STAF local var list system |grep multi-space
multi-space : one two three
---------------------------------------------------------
I found however that if I wrap the value in quotes:
---------------------------------------------------------
$ STAF local var set system var multi-space="one two three"
$ STAF local var list system |grep multi-space
multi-space : one two three
---------------------------------------------------------
I get the right answer. Is this the expected behaviour?
---------------------------------------------------------
version=3.3.4
platform=linux
architecture=32-bit
installer=STAFInst
file=STAF334-linux.tar
osname=Linux
osversion=*
osarch=x86
---------------------------------------------------------
--
---------------------------------------------------------
Raymond Kroeker
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users