Re: ?? exec prog << value ??



Zeh Mau wrote:
exec prog << var
where var shall be the mathematical expression, e.g. 2+2

No, var will always be the literal string "var". If you want the
value of the variable var you have to use $var, as in:
exec prog << $var


Schelte.
--
set Reply-To [string map {nospam schelte} $header(From)]
.



Relevant Pages

  • Re: ?? exec prog << value ??
    ... a small calculator, ... now i want to execute the program within a tcl-script. ... where var shall be the mathematical expression, ... exec prog << $var ...
    (comp.lang.tcl)
  • Re: Problem compiling on AIX 4.3
    ... > The variable var is defined in temp.h as follows: ... > I tried compiling with cc instead of xlc but got the same error. ... - Is the "typedef struct handle" contain the only reference to var ...
    (comp.unix.aix)
  • Re: Intermittent Error 12 - Variable Not Found
    ... This statement does *NOT* create a variable var, ... will now refer to something new (i.e. not a var that was assigned to ...
    (microsoft.public.fox.programmer.exchange)