Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2002 21:21:52 -0500
From:      parv <parv_@yahoo.com>
To:        f-q <freebsd-questions@freebsd.org>
Subject:   ksh93 function & history oddity
Message-ID:  <20020211022152.GA307@moo.holy.cow>

next in thread | raw e-mail | index | archive | help
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




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