Re: [tcljava-dev] doubt: using of 'expr' in Jacl
Brought to you by:
mdejong
|
From: Mo D. <md...@un...> - 2006-04-12 01:59:11
|
On Tue, 11 Apr 2006 15:34:14 +0530
"raj knowledge" <raj...@gm...> wrote:
> $AdminApp edit my_webapp.war {-MapModulesToServers {{XXXX
> xxxx.war,WEB-INF/web.xml
> WebSphere:cluster=$ clusterName
> +WebSphere:cell=HD-CELLNUMBERCell02,node=$nodeName,server=$webserverName }}}
If you have vars that need to be evaluated, pass in double quotes:
set name Bob
set word "My name is $name"
puts $word
(The above will print: "My name is Bob")
If you pass a brace quoted string then no $ subst will be done.
set name Bob
set word {My name is $name}
puts $word
(The above will print: "My name is $name")
P.S.
The expr is for math expressions and has nothing to do with the problem you are having.
Mo DeJong
|