mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-25 13:00:22 -04:00
20 lines
495 B
Makefile
20 lines
495 B
Makefile
# $NetBSD: quoting.mk,v 1.2 2006/06/29 13:35:18 rillig Exp $
|
|
#
|
|
# This file demonstrates various techniques for quoting variables when
|
|
# passing them to the shell.
|
|
#
|
|
# The third line revealed a bug in the NetBSD 3.0 shell, which discards
|
|
# the last argument under some circumstances when it is empty.
|
|
#
|
|
|
|
EVIL_STRING?= " "
|
|
|
|
.PHONY: all
|
|
all:
|
|
echo ${EVIL_STRING}
|
|
echo ${EVIL_STRING:Q}
|
|
echo "${EVIL_STRING}"
|
|
echo "${EVIL_STRING:Q}"
|
|
echo ${EVIL_STRING:Q}""
|
|
echo x${EVIL_STRING:Q} | sed 1s,.,,
|