From owner-freebsd-current Wed Oct 28 17:34:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA05422 for freebsd-current-outgoing; Wed, 28 Oct 1998 17:34:55 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from peak.mountin.net ([207.227.119.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA05409 for ; Wed, 28 Oct 1998 17:34:50 -0800 (PST) (envelope-from jeff-ml@mountin.net) Received: (from daemon@localhost) by peak.mountin.net (8.9.1/8.9.1) id SAA23404; Wed, 28 Oct 1998 18:01:04 -0600 (CST) Received: from harkol-76.isdn.mke.execpc.com(169.207.64.204) by peak.mountin.net via smap (V1.3) id sma023402; Wed Oct 28 18:00:50 1998 Message-Id: <3.0.3.32.19981028180006.00f404c4@207.227.119.2> X-Sender: jeff-ml@207.227.119.2 X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Wed, 28 Oct 1998 18:00:06 -0600 To: Parag Patel , current@FreeBSD.ORG From: "Jeffrey J. Mountin" Subject: Re: Stupid ksh tricks [Was: Re: Changing sh for compatibility sake] In-Reply-To: <199810281822.KAA15056@pinhead.parag.codegen.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 10:22 AM 10/28/98 -0800, Parag Patel wrote: > >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. Why not do 'set -o vi' followed by 'set -o vi-tabcomplete' and all is well. >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. Are you sure it needs to mimic them? Don't know bash, but ksh does have pushd/popd and it is supposed to be similar to csh's, which I don't do either. Might suggest O'Reilly's "Learning the Korn Shell" since the man pages don't cover everything. Jeff Mountin - Unix Systems TCP/IP networking jeff@mountin.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message