[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: #!/usr/bin/tclsh not working



Sebastian Canagaratna wrote:
> 
> Hi:
> 
>    I tried the following simple script with tclsh:
> 
>    #!/usr/bin/tclsh
>    puts stdout {Hello, World!}
>    ( from Brent B. Welch, Practical Programmin in Tcl and Tk)
> 
>    made the file (Hello) executable and typed . hello
>    and I get the error bash: puts: command not found.
> 
<...>


try this: 
	$ ./hello

when you do: '. hello', you are telling your shell (bash in this case)
to source the file 'hello'.  In other words, you are trying to run tcl
commands directly from your shell.

-- 
Morgan Terry
mterry@acsbps.com
(801) 567-5306



Reply to: