[Top][All Lists]

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

Re: Identical function names in bash source code

From: Chet Ramey
Subject: Re: Identical function names in bash source code
Date: Sun, 6 Jan 2019 21:56:56 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.3.3

On 1/6/19 9:05 PM, Peng Yu wrote:
>> "Not uncommon" is stretching it, since it happens in only one place:
>> lib/readline/shell.c.
> No. it is not uncommon. See the analysis of duplicated function/macro
> names and where they appear. There are around ~100 of them. Note that
> this analysis is not very accurate. But the balkpark estimate should
> be OK.
> https://pastebin.com/cV1jP41Y

Really? What is your analysis? There are 100 duplicate global symbols
shared between bash and other libraries? Or is it your assertion that
one should never use the same symbol names, unconditionally? You're not
making much of a point here.

>> Readline is now distributed separately, and used in hundreds of other
>> applications in addition to bash, but it was not always this way.
> Then, since it has been made into a separate package long time ago,
> why readline has not been removed from bash source code?

Because that's not how I choose to make it work. There are still
expectations users have for how readline and bash affect each other.

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

reply via email to

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