Changes between Version 6 and Version 7 of CommittersTipsAndTricks


Ignore:
Timestamp:
Jul 12, 2008, 9:19:55 PM (16 years ago)
Author:
febeling@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CommittersTipsAndTricks

    v6 v7  
    8080$ trac-get http://trac.macports.org/attachment/ticket/.../Portfile new-port
    8181}}}
     82
     83== Do Explorative Programming in tclsh with Readline Support==
     84
     85tclsh does not offer readline support by itself, which is quite annoying. When writing portfiles or tinkering with changes to Macports base, I need to experiment in a Tcl shell all the time to tests small things. But for that, command history and Emacs-like navigation within the line are essential. Unfortunately tclsh does not offer this.
     86
     87Solution: use port {{{rlwrap}}} together with tclsh. When you invoke tclsh via rlwrap you get all the convenience you know from bash.
     88{{{
     89rlwrap tclsh
     90}}}
     91Or, put even an alias into ~/.bashrc
     92{{{
     93alias tclsh='rlwrap tclsh'
     94}}}
     95and don't think about it ever again.