From owner-freebsd-questions@FreeBSD.ORG Mon Mar 12 16:38:09 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DCD2B16A403 for ; Mon, 12 Mar 2007 16:38:09 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from ayn.mi.celestial.com (hayek.celestial.com [192.136.111.12]) by mx1.freebsd.org (Postfix) with ESMTP id C01FC13C489 for ; Mon, 12 Mar 2007 16:38:09 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from localhost (localhost [127.0.0.1]) by ayn.mi.celestial.com (Postfix) with ESMTP id 4F38B68604395; Mon, 12 Mar 2007 09:39:03 -0700 (PDT) X-Virus-Scanned: amavisd-new at mi.celestial.com Received: from ayn.mi.celestial.com ([127.0.0.1]) by localhost (ayn.mi.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DuFos1VeO63H; Mon, 12 Mar 2007 09:39:03 -0700 (PDT) Received: by ayn.mi.celestial.com (Postfix, from userid 203) id 33EBD68604392; Mon, 12 Mar 2007 09:39:03 -0700 (PDT) Date: Mon, 12 Mar 2007 09:39:03 -0700 From: Bill Campbell To: freebsd-questions@freebsd.org Message-ID: <20070312163903.GB13871@ayn.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 OpenPKG/2.5 Subject: Re: Anyone use KSH? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 16:38:09 -0000 On Tue, Mar 13, 2007, Sunnz wrote: >Just installed Release 6.2 on my workstation, and the first thing I >did was installing (pd)ksh since I have been using it before... > >I found that a few things doesn't work, tab-completion, up/down arrow >keys, ctrl-A ctrl-E to go to the beginning/end of a line. My guess is that you're in vi mode by default (set -o vi), and would prefer it to be in emacs mode. Try ``set -o emacs'' to see if it does what you want. Personally I much prefer the vi mode as I've never been able to get my fingers to learn emacs. After using ksh for almost twenty years, I finally switched to bash from ksh several months ago when I found that tab completion works in vi mode on bash, and a simple alias "r='fc -s'" allows me to use the ksh style ``r'' commands to repeat previous commands. Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 Make no laws whatever concerning speech and, speech will be free; so soon as you make a declaration on paper that speech shall be free, you will have a hundred lawyers proving that ``freedom does not mean abuse, nor liberty license;'' and they will define and define freedom out of existence. - Voltarine de Cleyre (1866-1912)