[MacPorts] Notification: CommittersTipsAndTricks modified
MacPorts
noreply at macports.org
Sat Jul 12 14:19:55 PDT 2008
Changed page "CommittersTipsAndTricks" by febeling at macports.org from 91.37.203.192*
Page URL: <http://trac.macports.org/wiki/CommittersTipsAndTricks>
Diff URL: <http://trac.macports.org/wiki/CommittersTipsAndTricks?action=diff&version=7>
Revision 7
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: CommittersTipsAndTricks
=========================================================================
--- CommittersTipsAndTricks (version: 6)
+++ CommittersTipsAndTricks (version: 7)
@@ -79,3 +79,17 @@
{{{
$ trac-get http://trac.macports.org/attachment/ticket/.../Portfile new-port
}}}
+
+== Do Explorative Programming in tclsh with Readline Support==
+
+tclsh 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.
+
+Solution: use port {{{rlwrap}}} together with tclsh. When you invoke tclsh via rlwrap you get all the convenience you know from bash.
+{{{
+rlwrap tclsh
+}}}
+Or, put even an alias into ~/.bashrc
+{{{
+alias tclsh='rlwrap tclsh'
+}}}
+and don't think about it ever again.
-------8<------8<------8<------8<------8<------8<------8<------8<--------
* The IP shown here might not mean anything if the user is behind a proxy.
--
MacPorts <http://www.macports.org/>
Ports system for Mac OS
This is an automated message. Someone at http://www.macports.org/
added your email address to be notified of changes on MacPorts.
If it was not you, please report to http://www.macports.org/.
More information about the macports-changes
mailing list