Subject: Re: [Vim-vms] Vim-vms Digest, Vol 33, Issue 2

From: Samuel Ferencik <[email-masked]>
Date: Tue, 28 Dec 2010 13:16:25 +0100

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, <[email-masked]> wrote:

> Send Vim-vms mailing list submissions to
>        [email-masked]
>
> 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
>        [email-masked]
>
> You can reach the person managing the list at
>        [email-masked]
>
> 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 <[email-masked]>
> To: Vim text editor list on OpenVMS <[email-masked]>
> Cc: [email-masked], Dan Sharp <[email-masked]>
> Subject: [Vim-vms] if executable("perl") ... while "perl" is set up as
>        a       symbol
> Message-ID:
>        <AANLkTi=[email-masked]<[email-masked]>
> >
> 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 <[email-masked]>
> To: Vim text editor list on OpenVMS <[email-masked]>
> Cc: "[email-masked]" <[email-masked]>, Dan Sharp
>        <[email-masked]>
> Subject: Re: [Vim-vms] if executable("perl") ... while "perl" is set
>        up as asymbol
> Message-ID: <FA849BBCFEC13E42A34AE60EBC2D724720D4AD6243@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:[email-masked]]
> Sent: den 28 december 2010 09:24
> To: Vim text editor list on OpenVMS
> Cc: [email-masked]; 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
> [email-masked]
> http://www.polarhome.com/mailman/listinfo/vim-vms
>
>
> End of Vim-vms Digest, Vol 33, Issue 2
> **************************************
>