diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2017-10-15 15:30:20 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2017-10-15 15:30:20 +0000 |
commit | 0ae23b516e759030c8bdbd38325e0778228d8294 (patch) | |
tree | 05985c009b1f52b85f11fc10a8f346b32ec58052 /databases/postgresql93-server/files/patch-doc-Makefile | |
parent | - Update to 0.4.1 (diff) |
Make COPYTREE_* work with POSIX-compliant sh -c
The COPYTREE_BIN and COPYTREE_SHARE macros use constructs like
sh -c 'command' -- arg0 arg1
and assume that $0 will expand to arg0 and $1 will expand to arg1.
Our current sh implements it that way. However, POSIX specifies that $0 will
expand to -- and $1 will expand to arg0, since the command string is an
operand and not an option-argument. Bug #220587 requests making sh
POSIX-compliant in this regard.
If the argument after the command string does not start with '-', the
current sh behaves as required by POSIX. Therefore, adjust the macros so
this is always the case.
PR: 222870
Approved by: portmgr (antoine)
Notes
Notes:
svn path=/head/; revision=452153
Diffstat (limited to 'databases/postgresql93-server/files/patch-doc-Makefile')
0 files changed, 0 insertions, 0 deletions