Code

test-lib.sh: Add a test_set_editor function to safely set $VISUAL
authorBryan Donlan <bdonlan@fushizen.net>
Sun, 4 May 2008 05:37:54 +0000 (01:37 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 May 2008 21:17:01 +0000 (14:17 -0700)
commit02b35660031e1da4036559fb928589ca8c3844bd
treec6997979e537a39b2b4d95152f4445ee9d6f01de
parent065096c2b558af80e670299621ff3ddc6839954c
test-lib.sh: Add a test_set_editor function to safely set $VISUAL

In particular, this function correctly handles cases where the pwd contains
spaces, quotes, and other troublesome metacharacters.

Signed-off-by: Bryan Donlan <bdonlan@fushizen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh