The same behaviour manifests when I use Java code to set the variable, so
it's not due to the shell.  My previous attempts at using wrap manifested as
setting the value to:
:3:one
instead of:
one

The issue was that I was wrapping only the value and not name=value.  Once I
did this things worked out.  Thanks Sharon.

Raymond

On Thu, Feb 18, 2010 at 08:15, Sharon Lucas <luc...@us.ibm.com> wrote:

>
> 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"<http://staf.sourceforge.net/current/STAFUG.htm#ToC_178>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&reg; 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
>
>


-- 
---------------------------------------------------------
Raymond Kroeker
------------------------------------------------------------------------------
Download Intel&#174; 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

Reply via email to