Skip site navigation (1)Skip section navigation (2)
Date:      10 Feb 2002 19:43:25 -0800
From:      swear@blarg.net (Gary W. Swearingen)
To:        parv <parv_@yahoo.com>
Cc:        f-q <freebsd-questions@FreeBSD.ORG>
Subject:   Re: ksh93 function & history oddity
Message-ID:  <ygn0ygvg2q.0yg@localhost.localdomain>
In-Reply-To: <20020211022152.GA307@moo.holy.cow>
References:  <20020211022152.GA307@moo.holy.cow>

next in thread | previous in thread | raw e-mail | index | archive | help
parv <parv_@yahoo.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygn0ygvg2q.0yg>