Thread (17 messages) flat view 17 messages, 4 authors, 2016-06-15

Re: [PATCH v5 2/4] commit test: Use write_script

From: Jeff King <hidden>
Date: 2016-06-15 23:01:36

On Thu, Jun 12, 2014 at 02:39:00PM -0500, Caleb Thompson wrote:
Use write_script from t/test-lib-functions.sh instead of cat, shebang,
and chmod. This protects us from potential shell meta-characters in the
name of our trash directory, which would be interpreted if we set
$EDITOR directly.
I'm not sure about this last sentence; isn't that what test_set_editor
is doing, which was already there? I think the real rationale is
readability: since $SHELL_PATH is handled for us, you can turn off
interpolation in the here-doc containing the helper script. That avoids
an extra layer of quoting.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help