My guess is that your command shell is parsing the command line and
compressing out the multiple spaces before the arguments even get in to
the STAF command. When you quote the argument, it tells the command shell
to leave the value (inside the quotes) along, thus STAF sees the value
having multiple spaces, stores it that way, and gives it back to you that
way.
----------------------------------------------------------------------------------------
Joe Veilleux
IBM/Lotus Domino Server Quality Engineering
550 King Street
Littleton MA 01460
Email: joeveill...@us.ibm.com
Raymond Kroeker <raykroe...@gmail.com>
02/17/2010 07: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