Menu

#3 Error with shell command completions and tcl8.4

open
nobody
None
5
2003-06-15
2003-06-15
No

In tclreadlineCompleter.tcl
in proc ScriptCompleter

The command:
if {[catch [list set alias [namespace origin
$alias]]] }{

Causes an error if the command is not a tcl command

EG:
rmdir /usr/lo[tab]

This is caused by namespace origin being evaluated
prior to execution of the catch statement.

The fix:
if {[catch {set alias [namespace origin $alias]} ] }{

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.