Re: Confusion about $(shell) call and quoting

2023-05-16 Thread Eli Zaretskii
> Date: Tue, 16 May 2023 13:27:14 + > From: tom...@posteo.net > > Hello list > > Given this directory structure > > $ tree . > . > |-- D > | |-- f1.png > | `-- f2.png > |-- Makefile > `-- img.png > > 1 directory, 4 files > > and this makefile > > $ cat Makefile > PNGS := $(shell find

Re: Confusion about $(shell) call and quoting

2023-05-16 Thread Tim Murphy
I'm afraid you're discovering the horribleness of the windows CreateProcess system call. Rather than taking an already-split array of tokens it receives a command string and tokenises it. When bash shell scripts are in the mix the whole problem of quoting things starts to get very complicated be

Confusion about $(shell) call and quoting

2023-05-16 Thread tomasn
Hello list Given this directory structure $ tree . . |-- D | |-- f1.png | `-- f2.png |-- Makefile `-- img.png 1 directory, 4 files and this makefile $ cat Makefile PNGS := $(shell find D -name '*.png' -type f) all : tellpng .PHONY : tellpng tellpng : echo pngs: $(PNGS) running