Thread (1 message) 1 message, 1 author, 2018-01-10

Re: [PATCH] t3900: add some more quotes

From: Junio C Hamano <hidden>
Date: 2018-01-10 19:44:02

Johannes Sixt [off-list ref] writes:
quoted
    test_expect_success 'UTF-8 invalid characters refused' '
-	test_when_finished "rm -f \"$HOME/stderr $HOME/invalid\"" &&
+	test_when_finished "rm -f \"$HOME/stderr\" \"$HOME/invalid\"" &&
Should that not better be

	test_when_finished "rm -f \"\$HOME/stderr\" \"\$HOME/invalid\""

i.e., delay the expansion of $HOME to protect against double-quotes in
the path?
Yes ;-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help