<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word"><head><META content="text/html; charset=us-ascii" http-equiv="Content-Type">
<META content="text/html; charset=us-ascii" HTTP-EQUIV="Content-Type">
<meta content="Microsoft Word 11 (filtered medium)" name=Generator>
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType name="PersonName" namespaceuri="urn:schemas-microsoft-com:office:smarttags">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:912084958;
        mso-list-type:hybrid;
        mso-list-template-ids:-2106939644 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
</head><BODY>
<DIV>
<div class=Section1>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hello,<o:p></o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<ol start=1 style='margin-top:0cm' type=1>
<li class=MsoNormal style='color:navy;mso-list:l0 level1 lfo1'><font color=navy face=Arial size=2><span style='font-size:10.0pt;font-family:Arial'>this
is a normal setup for perl on a VMS system<o:p></o:p></span></font></li>
<li class=MsoNormal style='color:navy;mso-list:l0 level1 lfo1'><font color=navy face=Arial size=2><span style='font-size:10.0pt;font-family:Arial'>indeed
the executable() command might need to be improved on VMS system as every
EXE and COM is executable on VMS if the user has sufficient rights.<o:p></o:p></span></font></li>
</ol>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'>…also please note that by default Vim is
built with –perl on VMS :(<o:p></o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Regards, <o:p></o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Z <o:p></o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div align=center class=MsoNormal style='text-align:center'><font face="Times New Roman" size=3><span style='font-size:12.0pt'>
<hr align=center size=2 tabindex=-1 width="100%">
</span></font></div>
<p class=MsoNormal><b><font face=Tahoma size=2><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font face=Tahoma size=2><span style='font-size:10.0pt;font-family:Tahoma'> Samuel Ferencik
[mailto:sferencik@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> den 28 december 2010 09:24<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Vim
text editor list on OpenVMS</st1:PersonName><br>
<b><span style='font-weight:bold'>Cc:</span></b> andy@petdance.com; Dan Sharp<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Vim-vms] if
executable("perl") ... while "perl" is set up as a symbol</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>Hi,<br>
<br>
the Perl ftplugin (ftplugin/perl.vim) performs the following check:<br>
if executable("perl")<br>
...<br>
system('perl -e ...')<br>
...<br>
endif<br>
<br>
On my VMS system, perl is a (global) symbol set as follows:<br>
PERL == "$PERL_ROOT:[000000]PERL.EXE"<br>
<br>
Obviously, this is not recongnised by executable(), although it is executable.<br>
<br>
So I have two questions:<br>
<br>
1) is this kind of set-up ("perl" being a symbol) common on other
(yoru) VMS systems? Or is my set-up exotic?<br>
<br>
2) have you got any idea how to check for an executable symbol on VMS? The
simple solution is to change this to:<br>
<br>
if executable("perl") ||
has("vms") && exists($perl)<br>
<br>
but that's based on the (perhaps reasonable?) assumption
that perl 1) is a symbol (rather than a logical name) and that 2) it can be
invoked to execute the perl interpreter.<br>
<br>
Any better idea?<br>
<br>
Thanks and regards,<br>
Sam<o:p></o:p></span></font></p>
</div>
</DIV>
<DIV STYLE="FONT-SIZE: 9pt; FONT-FAMILY: Courier New">
<DIV>
<DIV> </DIV>
<DIV><FONT SIZE="2"></FONT> </DIV></DIV></DIV></BODY></HTML>