[Vim-vms] Vim-vms Digest, Vol 33, Issue 2

Samuel Ferencik sferencik at gmail.com
Tue Dec 28 13:16:25 CET 2010


Hi,

thanks for the quick answer.

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.

Regards,
Sam

On Tue, Dec 28, 2010 at 12:00, <vim-vms-request at polarhome.com> wrote:

> Send Vim-vms mailing list submissions to
>        vim-vms at polarhome.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://www.polarhome.com/mailman/listinfo/vim-vms
> or, via email, send a message with subject or body 'help' to
>        vim-vms-request at polarhome.com
>
> You can reach the person managing the list at
>        vim-vms-owner at polarhome.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Vim-vms digest..."
>
>
> Today's Topics:
>
>   1. if executable("perl") ... while "perl" is set up as a     symbol
>      (Samuel Ferencik)
>   2. Re: if executable("perl") ... while "perl" is set up as
>      asymbol (Arpadffy Zoltan)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 28 Dec 2010 09:24:27 +0100
> From: Samuel Ferencik <sferencik at gmail.com>
> To: Vim text editor list on OpenVMS <vim-vms at polarhome.com>
> Cc: andy at petdance.com, Dan Sharp <dwsharp at hotmail.com>
> Subject: [Vim-vms] if executable("perl") ... while "perl" is set up as
>        a       symbol
> Message-ID:
>        <AANLkTi=bnKGP1C8MO5o8sRf+VNCFy1eXX40NKdr_UeGg at mail.gmail.com<bnKGP1C8MO5o8sRf%2BVNCFy1eXX40NKdr_UeGg at mail.gmail.com>
> >
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> the Perl ftplugin (ftplugin/perl.vim) performs the following check:
>    if executable("perl")
>        ...
>        system('perl -e ...')
>        ...
>    endif
>
> On my VMS system, perl is a (global) symbol set as follows:
>    PERL == "$PERL_ROOT:[000000]PERL.EXE"
>
> Obviously, this is not recongnised by executable(), although it is
> executable.
>
> So I have two questions:
>
> 1) is this kind of set-up ("perl" being a symbol) common on other (yoru)
> VMS
> systems? Or is my set-up exotic?
>
> 2) have you got any idea how to check for an executable symbol on VMS? The
> simple solution is to change this to:
>
>        if executable("perl") || has("vms") && exists($perl)
>
>    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.
>
>    Any better idea?
>
> Thanks and regards,
> Sam
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.polarhome.com/pipermail/vim-vms/attachments/20101228/1e15b0f2/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Tue, 28 Dec 2010 09:30:51 +0100
> From: Arpadffy Zoltan <Zoltan.Arpadffy at scientificgames.se>
> To: Vim text editor list on OpenVMS <vim-vms at polarhome.com>
> Cc: "andy at petdance.com" <andy at petdance.com>, Dan Sharp
>        <dwsharp at hotmail.com>
> Subject: Re: [Vim-vms] if executable("perl") ... while "perl" is set
>        up as asymbol
> Message-ID: <FA849BBCFEC13E42A34AE60EBC2D724720D4AD6243 at sgmail1>
> Content-Type: text/plain; charset="us-ascii"
>
> Hello,
>
>
>  1.  this is a normal setup for perl on a VMS system
>  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.
>
> ...also please note that by default Vim is built with -perl on VMS :(
>
> Regards,
> Z
>
> ________________________________
> From: Samuel Ferencik [mailto:sferencik at gmail.com]
> Sent: den 28 december 2010 09:24
> To: Vim text editor list on OpenVMS
> Cc: andy at petdance.com; Dan Sharp
> Subject: [Vim-vms] if executable("perl") ... while "perl" is set up as a
> symbol
>
> Hi,
>
> the Perl ftplugin (ftplugin/perl.vim) performs the following check:
>    if executable("perl")
>        ...
>        system('perl -e ...')
>        ...
>    endif
>
> On my VMS system, perl is a (global) symbol set as follows:
>    PERL == "$PERL_ROOT:[000000]PERL.EXE"
>
> Obviously, this is not recongnised by executable(), although it is
> executable.
>
> So I have two questions:
>
> 1) is this kind of set-up ("perl" being a symbol) common on other (yoru)
> VMS systems? Or is my set-up exotic?
>
> 2) have you got any idea how to check for an executable symbol on VMS? The
> simple solution is to change this to:
>
>        if executable("perl") || has("vms") && exists($perl)
>
>    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.
>
>    Any better idea?
>
> Thanks and regards,
> Sam
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.polarhome.com/pipermail/vim-vms/attachments/20101228/ced946f6/attachment-0001.html
> >
>
> ------------------------------
>
> _______________________________________________
> Vim-vms mailing list
> Vim-vms at polarhome.com
> http://www.polarhome.com/mailman/listinfo/vim-vms
>
>
> End of Vim-vms Digest, Vol 33, Issue 2
> **************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.polarhome.com/pipermail/vim-vms/attachments/20101228/e3353957/attachment.html>


More information about the Vim-vms mailing list