From owner-freebsd-questions Sun Feb 10 19:42:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id 9F73137B404 for ; Sun, 10 Feb 2002 19:42:23 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 52A35BC80; Sun, 10 Feb 2002 19:42:23 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id TAA23057; Sun, 10 Feb 2002 19:42:22 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id g1B3hPO22698; Sun, 10 Feb 2002 19:43:25 -0800 (PST) (envelope-from swear@blarg.net) To: parv Cc: f-q Subject: Re: ksh93 function & history oddity References: <20020211022152.GA307@moo.holy.cow> From: swear@blarg.net (Gary W. Swearingen) Date: 10 Feb 2002 19:43:25 -0800 In-Reply-To: <20020211022152.GA307@moo.holy.cow> Message-ID: Lines: 22 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 parv writes: > 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. With pdksh (from "history"): 52 func_a () { echo this is func_a; } 53 function func_b { echo this is func_b; } 54 history 55 func_b 56 func_a 57 func_c () { echo cccc } 58 function func_d { echo ddddd } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message