Package: patcher / 0.0.20040521-6.1

bug283373.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Alejandro Rios P. <alejandro.rios@avatar.com.co>
Subject: Add support for options on $EDITOR env variable

diff -urNad /home/alerios/documentos/debian/patcher/patcher/patcher-0.0.20040521/patcher patcher-0.0.20040521/patcher
--- /home/alerios/documentos/debian/patcher/patcher/patcher-0.0.20040521/patcher	2004-05-21 14:27:00.000000000 -0500
+++ patcher-0.0.20040521/patcher	2005-08-03 01:06:52.131828896 -0500
@@ -749,7 +749,8 @@
 
 	if ($ENV{EDITOR}) {
 		print "NOTE: editing file $fname\n";
-		system($ENV{EDITOR}, $fname);
+		my @editor=split(/\ /,$ENV{EDITOR});
+		system(@editor, $fname);
 	} else {
 		print "\$EDITOR to $fname missing\n";
 		system("vi " . $fname);