[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Functions that update themselves
From: |
Andreas Kusalananda Kähäri |
Subject: |
Re: Functions that update themselves |
Date: |
Mon, 3 Jun 2019 10:52:26 +0200 |
User-agent: |
Mutt/1.12.0 (2019-05-25) |
On Mon, Jun 03, 2019 at 03:54:59PM +0800, konsolebox wrote:
> Hi Chet,
>
> Do you explicitly allow functions to do this? I just want to know.
>
> a() { a() { ...; }; a; }
> b() { unset -f b; command b "$@"; }
>
> My current use case for this is to have a function simplify itself
> when condition checks are no longer necessary and just adds
> unnecessary runtime load. I also had many other previous ones.
>
> --
> konsolebox
This does not seem to be a bug report. Maybe you meant to send this to
the help-bash list?
--
Kusalananda
Sweden