libgrapheme

unicode string library
git clone git://git.suckless.org/libgrapheme
Log | Files | Refs | README | LICENSE

commit c58eb2ceb965785dbe9fecb688e10250d17aeca7
parent 0516e8545dc78a808f737831a04d75f06cb875b3
Author: Laslo Hunhold <dev@frign.de>
Date:   Mon, 29 Aug 2022 10:30:00 +0200

Quote input variables

The passed values can be expected to never contain spaces, but it's
better to be safe. Just theoretically, nobody is prevented from using
a sh-binary located in "/opt/my favourite bins/sh".

Signed-off-by: Laslo Hunhold <dev@frign.de>

Diffstat:
MMakefile | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -243,10 +243,10 @@ libgrapheme.so: $(SRC:=.o) $(CC) -o $@ $(SOFLAGS) $(LDFLAGS) $(SRC:=.o) $(MAN3:=.3): - SH=$(SH) MAN_DATE=$(MAN_DATE) UNICODE_VERSION=$(UNICODE_VERSION) $(SH) $(@:.3=.sh) > $@ + SH="$(SH)" MAN_DATE="$(MAN_DATE)" UNICODE_VERSION="$(UNICODE_VERSION)" $(SH) $(@:.3=.sh) > $@ $(MAN7:=.7): - SH=$(SH) MAN_DATE=$(MAN_DATE) UNICODE_VERSION=$(UNICODE_VERSION) $(SH) $(@:.7=.sh) > $@ + SH="$(SH)" MAN_DATE="$(MAN_DATE)" UNICODE_VERSION="$(UNICODE_VERSION)" $(SH) $(@:.7=.sh) > $@ benchmark: $(BENCHMARK) for m in $(BENCHMARK); do ./$$m; done