Invalid use of const pointer?

2022-01-07 Thread Joe Filion
Hello, While examining the source code for make, I see something suspicious with a const pointer.  Line 3094 of read.c is: char *userend = strchr (name + 1, '/'); The name parameter is a const pointer, so the overloaded version of strchr that takes a const pointer as the first parameter should also

Re: escaped newline in macro expansion in command line

2022-01-07 Thread Humm
Quoth Dmitry Goncharov: Humm, in the following example do you want N and M to expand to different values? If yes, can you please tell us about your use case where such behavior is needed? .POSIX: M=word N=${M:word=a\ b} all:; echo ${N} ${M:word=a\ b} I would think they should expand to differe

Re: Segafult while running make(1) from /lib/init/rc with -j

2022-01-07 Thread Dmitry Goncharov
On Thu, Jan 6, 2022 at 2:13 PM Alejandro Colomar (man-pages) wrote: > I could try to write a simpler Makefile That would be good. We need to be able to reproduce the crash. regards, Dmitry

Re: escaped newline in macro expansion in command line

2022-01-07 Thread Dmitry Goncharov
On Fri, Dec 24, 2021 at 6:30 PM Humm wrote: > That’s the argument I’m making. Humm, in the following example do you want N and M to expand to different values? If yes, can you please tell us about your use case where such behavior is needed? .POSIX: M=word N=${M:word=a\ b} all:; echo ${N} ${M:wo