From owner-freebsd-current Wed Oct 28 10:24:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA26770 for freebsd-current-outgoing; Wed, 28 Oct 1998 10:24:07 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from pinhead.parag.codegen.com (ppp-pm3-02--090.sirius.net [205.134.231.90]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA26751 for ; Wed, 28 Oct 1998 10:24:03 -0800 (PST) (envelope-from parag@pinhead.parag.codegen.com) Received: from pinhead.parag.codegen.com (localhost.parag.codegen.com [127.0.0.1]) by pinhead.parag.codegen.com (8.9.1/8.8.8) with ESMTP id KAA15056 for ; Wed, 28 Oct 1998 10:22:45 -0800 (PST) (envelope-from parag@pinhead.parag.codegen.com) Message-Id: <199810281822.KAA15056@pinhead.parag.codegen.com> X-Mailer: exmh version 2.0.2 2/24/98 To: current@FreeBSD.ORG Subject: Stupid ksh tricks [Was: Re: Changing sh for compatibility sake] In-reply-to: Your message of "Wed, 28 Oct 1998 09:02:57 CST." X-Face: =O'Kj74icvU|oS*<7gS/8'\Pbpm}okVj*@UC!IgkmZQAO!W[|iBiMs*|)n*`X ]pW%m>Oz_mK^Gdazsr.Z0/JsFS1uF8gBVIoChGwOy{EK=<6g?aHE`[\S]C]T0Wm X-URL: http://www.codegen.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 28 Oct 1998 10:22:45 -0800 From: Parag Patel Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG A minor aside regarding some stupid ksh tricks... My fingers have gotten used to hitting TAB in bash for completing file names. I'd avoided pdksh only for this one reason. (Sad, I know.) I recently dug through the man-page for pdksh and discovered that adding these following lines: case "$KSH_VERSION" in *"PD KSH"*) bind '^I=complete' bind '^I^I=complete-list' ;; esac to my .kshrc (which is linked to .bashrc for me) and things work just fine. It's not *exactly* the same output, but it's pretty much the same behavior and so my fingers don't have to be retrained. I've switched over to pdksh now. I also have some ksh functions to mimic the csh/bash pushd/popd commands, so if anyone's interested in these, please let me know and I'll email my .kshrc or put it up for ftp. As an added bonus you also get a function for setting the title bar in several terminal emulators (xterm, hpterm, and Mac NCSA Telnet) to the current directory stack. -- Parag To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message