bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: missing goto


From: Chris F.A. Johnson
Subject: Re: missing goto
Date: Thu, 23 Sep 2004 14:58:13 -0400 (EDT)

On Thu, 23 Sep 2004, Albert Cahalan wrote:

Old shells had a working goto. Back in the day,
it was an external command that did an lseek.
I think it would better be done as a built-in.

   Or a function?

goto()
{
   sed -n "/^: *$1/,$ p" $0 | tail +2 | $SHELL
}

--
        Chris F.A. Johnson                      http://cfaj.freeshell.org
        =================================================================
                Everything in moderation -- including moderation




reply via email to

[Prev in Thread] Current Thread [Next in Thread]