For Programmers: Free Programming Magazines  


Home > Archive > Tcl > March 2006 > Can we alias a command in tclsh









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Can we alias a command in tclsh
subhendra.basu@gmail.com

2006-03-28, 7:04 pm

Hi

Do we have something like

alias <new command> <old command>

in Tcl shell.

I saw a Tcl_CreateAlias in Tcl - C library doc

Please help

Thanks
Subhendra

Michael Schlenker

2006-03-28, 7:04 pm

subhendra.basu@gmail.com wrote:
> Hi
>
> Do we have something like
>
> alias <new command> <old command>
>
> in Tcl shell.
>
> I saw a Tcl_CreateAlias in Tcl - C library doc
>
> Please help
>
> Thanks
> Subhendra
>

see the 'interp' command documentation:

interp alias {} $newcommand {} $oldcommand

Michael
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com