bug-bash
[Top][All Lists]
Advanced

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

Many of the example loadable builtins don't work anymore


From: Emanuele Torre
Subject: Many of the example loadable builtins don't work anymore
Date: Sat, 25 Nov 2023 03:40:25 +0100
User-agent: Mutt/2.2.12 (2023-09-09)

Many of the loadable builtins that set variables in the
examples/loadables directory don't work anymore because they still want
to call legal_identifier instead of valid_identifier.

    $ ./bash -c 'enable -f {examples/loadables/,}mktemp; mktemp'
    /tmp/shtmp.h2HpWZ
    $ ./bash -c 'enable -f {examples/loadables/,}mktemp; mktemp -v foo'
    ./bash: symbol lookup error: examples/loadables/mktemp: undefined symbol: 
legal_identifier

Replacing legal_identifier with valid_identifier should resolve the
issue:

    $ git grep -l legal_ examples/loadables
    examples/loadables/asort.c
    examples/loadables/cut.c
    examples/loadables/dsv.c
    examples/loadables/kv.c
    examples/loadables/lcut.c
    examples/loadables/mktemp.c
    examples/loadables/print.c
    examples/loadables/realpath.c
    examples/loadables/stat.c

o/
 emanuele6



reply via email to

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