bug-bash
[Top][All Lists]
Advanced

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

Re: documentation string for caller builtin


From: Chet Ramey
Subject: Re: documentation string for caller builtin
Date: Wed, 6 Jul 2022 09:48:17 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 7/2/22 6:09 AM, Ernest Adrogué wrote:
> Hello,
> 
> The documentation string for the 'caller' builtin command in bash.pot
> appears to be incomplete, in particular the last 4 lines from the
> snippet below which were present in previous versions are now missing:

Not so.

#: builtins.c:369
msgid ""
"Return the context of the current subroutine call.\n"
"    \n"
"    Without EXPR, returns \"$line $filename\".  With EXPR, returns\n"
"    \"$line $subroutine $filename\"; this extra information can be used to\n"
"    provide a stack trace.\n"
"    \n"
"    The value of EXPR indicates how many call frames to go back before the\n"
"    current one; the top frame is frame 0.\n"
"    \n"
"    Exit Status:\n"
"    Returns 0 unless the shell is not executing a shell function or EXPR\n"
"    is invalid."
msgstr ""

The other one is present if the caller builtin is compiled as a loadable
builtin, which it is not in the distributed version of bash. I suppose I
could make the two identical, but the loadable builtin version is never
used, so it doesn't seem like a priority.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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