In tcl, we can set the returned character of a inlined command into a tcl variable as below.
Tcl> set x [pwd] /home/user_leo/tmp Tcl> puts $x /home/user