[Top][All Lists]

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

Regex library

From: Pietro Paolini
Subject: Regex library
Date: Fri, 18 Jun 2021 08:42:31 +0100

Hi all,

I apologize if this email highlight some misunderstanding of the sed
internals from my end - I am not proficient in the build system its uses
therefore it is not extremely easy for me to dig out info from there.

In the sed source code there is a folder called lib/ which seems to include
the GNU lib and or maybe I am flay wrong and that isn't gnulib

Another question concerns the regex library in use, I can see the code
using regex functions defined as part of gnulib

Yet when I ldd the sed binary I can observe that PCRE is dynamically linked

~/local/src/sed-4.8 $ ldd `which sed` (0x00007ffe785df000) => /lib/x86_64-linux-gnu/
(0x00007eff9bd62000) => /lib/x86_64-linux-gnu/ (0x00007eff9bb70000) => /lib/x86_64-linux-gnu/
(0x00007eff9bae0000) => /lib/x86_64-linux-gnu/ (0x00007eff9bada000)
        /lib64/ (0x00007eff9bde2000) => /lib/x86_64-linux-gnu/

What library is used for regex in GNU sed ? I inclined to say that PCRE
isn't used, after all libpthread gets linked too and it is not used.

Would someone be able to case some light on the matter ?


reply via email to

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