tcl-websh-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronnie Brunner <ron...@netcetera.ch>
Subject Re: websh and exec
Date Wed, 12 Nov 2003 23:19:41 GMT
> I was just wondering why the following code snippet refuses to work...
> 
> catch {set fileList [exec "ls ."]} err

try
	catch {set fileList [exec ls .]}

(you have a Tcl problem, not a Websh problem: exec takes a list of
arguments, not a argment that is a list)

Regards
Ronnie
----------------------------------------------------------------------
Ronnie Brunner                             ronnie.brunner@netcetera.ch
Netcetera AG, 8040 Zuerich   phone +41 1 247 79 79 fax +41 1 247 70 75

Mime
View raw message