Hi,<br><br>thanks for the quick answer.<br><br>I entered a ticket (Issue) for it. If solved, it will also solve the original problem with perl.vim, without the need to modify the perl ftplugin.<br><br>Regards,<br>Sam<br><br>
<div class="gmail_quote">On Tue, Dec 28, 2010 at 12:00, <span dir="ltr"><<a href="mailto:vim-vms-request@polarhome.com">vim-vms-request@polarhome.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Send Vim-vms mailing list submissions to<br>
<a href="mailto:vim-vms@polarhome.com">vim-vms@polarhome.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://www.polarhome.com/mailman/listinfo/vim-vms" target="_blank">http://www.polarhome.com/mailman/listinfo/vim-vms</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:vim-vms-request@polarhome.com">vim-vms-request@polarhome.com</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:vim-vms-owner@polarhome.com">vim-vms-owner@polarhome.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Vim-vms digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. if executable("perl") ... while "perl" is set up as a symbol<br>
(Samuel Ferencik)<br>
2. Re: if executable("perl") ... while "perl" is set up as<br>
asymbol (Arpadffy Zoltan)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 28 Dec 2010 09:24:27 +0100<br>
From: Samuel Ferencik <<a href="mailto:sferencik@gmail.com">sferencik@gmail.com</a>><br>
To: Vim text editor list on OpenVMS <<a href="mailto:vim-vms@polarhome.com">vim-vms@polarhome.com</a>><br>
Cc: <a href="mailto:andy@petdance.com">andy@petdance.com</a>, Dan Sharp <<a href="mailto:dwsharp@hotmail.com">dwsharp@hotmail.com</a>><br>
Subject: [Vim-vms] if executable("perl") ... while "perl" is set up as<br>
a symbol<br>
Message-ID:<br>
<AANLkTi=<a href="mailto:bnKGP1C8MO5o8sRf%2BVNCFy1eXX40NKdr_UeGg@mail.gmail.com">bnKGP1C8MO5o8sRf+VNCFy1eXX40NKdr_UeGg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
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<br>
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<br>
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<br>
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<br>
a symbol (rather than a logical name) and that 2) it can be invoked to<br>
execute the perl interpreter.<br>
<br>
Any better idea?<br>
<br>
Thanks and regards,<br>
Sam<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.polarhome.com/pipermail/vim-vms/attachments/20101228/1e15b0f2/attachment-0001.html" target="_blank">http://www.polarhome.com/pipermail/vim-vms/attachments/20101228/1e15b0f2/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 28 Dec 2010 09:30:51 +0100<br>
From: Arpadffy Zoltan <<a href="mailto:Zoltan.Arpadffy@scientificgames.se">Zoltan.Arpadffy@scientificgames.se</a>><br>
To: Vim text editor list on OpenVMS <<a href="mailto:vim-vms@polarhome.com">vim-vms@polarhome.com</a>><br>
Cc: "<a href="mailto:andy@petdance.com">andy@petdance.com</a>" <<a href="mailto:andy@petdance.com">andy@petdance.com</a>>, Dan Sharp<br>
<<a href="mailto:dwsharp@hotmail.com">dwsharp@hotmail.com</a>><br>
Subject: Re: [Vim-vms] if executable("perl") ... while "perl" is set<br>
up as asymbol<br>
Message-ID: <FA849BBCFEC13E42A34AE60EBC2D724720D4AD6243@sgmail1><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hello,<br>
<br>
<br>
1. this is a normal setup for perl on a VMS system<br>
2. 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.<br>
<br>
...also please note that by default Vim is built with -perl on VMS :(<br>
<br>
Regards,<br>
Z<br>
<br>
________________________________<br>
From: Samuel Ferencik [mailto:<a href="mailto:sferencik@gmail.com">sferencik@gmail.com</a>]<br>
Sent: den 28 december 2010 09:24<br>
To: Vim text editor list on OpenVMS<br>
Cc: <a href="mailto:andy@petdance.com">andy@petdance.com</a>; Dan Sharp<br>
Subject: [Vim-vms] if executable("perl") ... while "perl" is set up as a symbol<br>
<br>
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<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.polarhome.com/pipermail/vim-vms/attachments/20101228/ced946f6/attachment-0001.html" target="_blank">http://www.polarhome.com/pipermail/vim-vms/attachments/20101228/ced946f6/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Vim-vms mailing list<br>
<a href="mailto:Vim-vms@polarhome.com">Vim-vms@polarhome.com</a><br>
<a href="http://www.polarhome.com/mailman/listinfo/vim-vms" target="_blank">http://www.polarhome.com/mailman/listinfo/vim-vms</a><br>
<br>
<br>
End of Vim-vms Digest, Vol 33, Issue 2<br>
**************************************<br>
</blockquote></div><br>