[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Is there a way to get where a function is sourced from?
From: |
Dennis Williamson |
Subject: |
Re: [Help-bash] Is there a way to get where a function is sourced from? |
Date: |
Thu, 20 Dec 2018 17:14:37 -0500 |
On Thu, Dec 20, 2018, 5:13 PM Dennis Williamson <address@hidden
wrote:
>
>
> On Thu, Dec 20, 2018, 4:18 PM Peng Yu <address@hidden wrote:
>
>> Hi,
>>
>> For a function already sourced, is there a way to know where it is
>> original defined? Thanks. This feature can helpful for debugging
>> functions if available. But I don't find it. Could anybody confirm
>> whether this feature is not available (or available)? Thanks.
>>
>> --
>> Regards,
>> Peng
>>
>
>
> shoot -s extdebug
> declare -F foo
>
> where "foo" is your function's name.
>
Should say "shopt".
>