Re: posix command search and execution

2023-11-07 Thread Mike Jonkmans
On Tue, Nov 07, 2023 at 11:49:25AM -0500, Chet Ramey wrote: > On 11/7/23 8:54 AM, Mike Jonkmans wrote: ... > > > Look at https://www.austingroupbugs.net/view.php?id=854 for a discussion > > > of this issue. > > Thanks for the link, I find that very hard to read though. > It's also incomplete;

Re: posix command search and execution

2023-11-07 Thread Mike Jonkmans
On Tue, Nov 07, 2023 at 09:39:33AM +0700, Robert Elz wrote: > Date:Mon, 6 Nov 2023 14:28:24 -0500 > From:Chet Ramey > Message-ID: <0ab6075e-22bf-43cd-992c-b2476f626...@case.edu> > > | On 11/6/23 10:48 AM, Mike Jonkmans wrote: > | > According to these docs (what I

Re: posix command search and execution

2023-11-07 Thread Chet Ramey
On 11/7/23 8:54 AM, Mike Jonkmans wrote: Thanks for the answers, Chet. On Mon, Nov 06, 2023 at 02:28:24PM -0500, Chet Ramey wrote: On 11/6/23 10:48 AM, Mike Jonkmans wrote: Q: Why check for regular builtins? That was already done in 1d. Implementations can provide other builtins. The

Re: Defaults when cross-compiling

2023-11-07 Thread Chet Ramey
On 11/7/23 10:03 AM, Oğuz wrote: On Tuesday, November 7, 2023, Chet Ramey > wrote: It's interesting that musl supports brk but not sbrk It doesn't support locales either. I always assumed it's someone's toy project but looks like there are Linux distros

Re: posix command search and execution

2023-11-07 Thread Chet Ramey
On 11/6/23 9:39 PM, Robert Elz wrote: | > 1eI) Search is successful. | > 1eIa) Check for `regular builtins' and functions | >and invoke that regular builtin/function. | >Q: Shouldn't this specify an ordering for builtins/functions? | | The text seems to imply

Re: Defaults when cross-compiling

2023-11-07 Thread Oğuz
On Tuesday, November 7, 2023, Chet Ramey wrote: > > It's interesting that musl supports brk but not sbrk It doesn't support locales either. I always assumed it's someone's toy project but looks like there are Linux distros shipping it instead of glibc. Huh -- Oğuz

Re: Defaults when cross-compiling

2023-11-07 Thread Chet Ramey
On 11/6/23 10:39 PM, Michael T. Kloos wrote: I was trying to cross-compile bash for musl libc.  The configure script reports: checking for working sbrk... configure: WARNING: cannot check working sbrk if cross-compiling yes In this case, the bash configure assumes that sbrk is present and

Re: posix command search and execution

2023-11-07 Thread Mike Jonkmans
Thanks for the answers, Chet. On Mon, Nov 06, 2023 at 02:28:24PM -0500, Chet Ramey wrote: > On 11/6/23 10:48 AM, Mike Jonkmans wrote: > > > Q: Why check for regular builtins? That was already done in 1d. > Implementations can provide other builtins. The check in 1d is only for > those specific