From owner-freebsd-questions Sun Feb 10 18:19:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by hub.freebsd.org (Postfix) with ESMTP id C0B9F37B405 for ; Sun, 10 Feb 2002 18:19:52 -0800 (PST) Received: from sdn-ar-007dcwashp168.dialsprint.net ([63.178.91.104] helo=moo.holy.cow) by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 16a64O-0000JN-00 for freebsd-questions@freebsd.org; Sun, 10 Feb 2002 18:19:52 -0800 Received: by moo.holy.cow (Postfix, from userid 1001) id 290BE50B8B; Sun, 10 Feb 2002 21:21:52 -0500 (EST) Date: Sun, 10 Feb 2002 21:21:52 -0500 From: parv To: f-q Subject: ksh93 function & history oddity Message-ID: <20020211022152.GA307@moo.holy.cow> Mail-Followup-To: f-q Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi there, there seems to be an oddity in ksh93, compared to bash, based on how a function is defined. consider in some file sourced in ~/.kshrc, or in ~/.kshrc itself... func_a () { echo 'this is func_a' } function func_b { echo 'this is func_b' } after, .kshrc is sourced, number of command history decreases by one depending upon the number of func_a type definition. 2d form, of func_b, does not affect the history. and, that is even before any command was issued at the prompt. just a curiosity. - parv -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message