bug-bash
[Top][All Lists]
Advanced

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

Re: Bash not portable to C23


From: Paul Eggert
Subject: Re: Bash not portable to C23
Date: Thu, 23 Mar 2023 18:49:51 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

On 3/23/23 18:23, Lawrence Velázquez wrote:
On Thu, Mar 23, 2023, at 9:16 PM, Paul Eggert wrote:
I see that Bash won't compile with a C23 compiler, since it still uses
old-style function definitions which C23 no longer supports. Is there
any effort and/or interest in fixing this portability problem in Bash?

I believe this was done a few months ago on the devel branch.

https://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=a61ffa78ede6df4d1127fddd2e8a1a77a7186ea1

Oh, thanks, I was looking at the wrong branch.

However, Bash's devel branch still has old-style function definitions and therefore won't compile with a strict C23 compiler. For example, get_variable_value in variables.c is old-style. I assume there would be interest in fixing remaining areas where Bash won't port to C23?




reply via email to

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