Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15361 > unrolled thread

Syntax error in caller.def

Started byRoland Illig <roland.illig@gmx.de>
First post2019-09-15 19:15 +0200
Last post2019-09-15 19:15 +0200
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Syntax error in caller.def Roland Illig <roland.illig@gmx.de> - 2019-09-15 19:15 +0200

#15361 — Syntax error in caller.def

FromRoland Illig <roland.illig@gmx.de>
Date2019-09-15 19:15 +0200
SubjectSyntax error in caller.def
Message-ID<mailman.292.1568567743.2190.bug-bash@gnu.org>
static char *caller_doc[] = {
N_("Returns 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."),
  (char *)NULL
};

The "$line $subroutine $filename" part looks good to humans, but the C
compiler should reject it since the string actually ends at the " before
$line.

According to examples/loadables/Makefile.in, caller.def is not compiled
with LOADABLE_BUILTIN defined, which explains why the bug has not failed
the build.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web