Skip Menu |

This queue is for tickets about the IPC-Cmd CPAN distribution.

Report information
The Basics
Id: 84245
Status: open
Priority: 0/
Queue: IPC-Cmd

People
Owner: Nobody in particular
Requestors: Paul.Green [...] stratus.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: "Green, Paul" <Paul.Green [...] stratus.com>
Subject: Q re IPC::CMD and executable suffix
Date: Wed, 27 Mar 2013 14:52:00 -0400
To: <bug-ipc-cmd [...] rt.cpan.org>
From: "Green, Paul" <Paul.Green [...] stratus.com>
Gentle IPC::Cmd maintainer, I maintain the port of Perl for the Stratus VOS/OpenVOS operating system. This operating system requires that the name of any executable file end with the suffix ".pm". (Not to be confused with the suffix for perl modules). To be guaranteed to finding a VOS executable program **in the file system**, the .pm suffix must be specified. The suffix is NOT required when simply typing in commands (although it can be supplied here, if one wishes to do so). In my experience, most perl code is written and tested in a Unix/Linux environment and hence does not concern itself with executable suffixes. Because the Windows environment has a similar requirement, some code has been modified to deal with suffixes, but this is not universal. I'm wondering whether or how IPC::Cmd should be modified to deal with this issue for VOS. It is easy enough to special-case VOS; the $^O variable will return 'vos' on our system. Have you run into this issue before? How do you suggest I proceed? Thanks PG -- Sr. Technical Consultant, Stratus Technologies Inc. Office: +1-978-461-7557; Mobile: +1-978-235-2451; Twitter: @stratuspaulg
Subject: Re: [rt.cpan.org #84245] Q re IPC::CMD and executable suffix
Date: Wed, 27 Mar 2013 22:18:43 +0000
To: Paul Green via RT <bug-IPC-Cmd [...] rt.cpan.org>
From: "Chris 'BinGOs' Williams" <chris [...] bingosnet.co.uk>
On Wed, Mar 27, 2013 at 02:52:14PM -0400, Paul Green via RT wrote: Show quoted text
> Wed Mar 27 14:52:14 2013: Request 84245 was acted upon. > Transaction: Ticket created by Paul.Green@stratus.com > Queue: IPC-Cmd > Subject: Q re IPC::CMD and executable suffix > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: Paul.Green@stratus.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=84245 > > > > Gentle IPC::Cmd maintainer, > > > > I maintain the port of Perl for the Stratus VOS/OpenVOS operating > system. This operating system requires that the name of any executable > file end with the suffix ".pm". (Not to be confused with the suffix for > perl modules). > > > > To be guaranteed to finding a VOS executable program **in the file > system**, the .pm suffix must be specified. The suffix is NOT required > when simply typing in commands (although it can be supplied here, if one > wishes to do so). > > > > In my experience, most perl code is written and tested in a Unix/Linux > environment and hence does not concern itself with executable suffixes. > Because the Windows environment has a similar requirement, some code has > been modified to deal with suffixes, but this is not universal. > > > > I'm wondering whether or how IPC::Cmd should be modified to deal with > this issue for VOS. It is easy enough to special-case VOS; the $^O > variable will return 'vos' on our system. Have you run into this issue > before? How do you suggest I proceed?
The can_run() function of IPC::Cmd is used to locate executables. This uses MM->maybe_command from ExtUtils::MakeMaker. ExtUtils::MM_VOS inherits from ExtUtils::MM_Unix and will probably need to override maybe_command to check for the .pm suffix (similar to how ExtUtils::MM_Win32 does for .exe et al). -- Chris Williams aka BinGOs PGP ID 0x4658671F http://www.gumbynet.org.uk ==========================
Download (untitled)
application/pgp-signature 189b

Message body not shown because it is not plain text.

Subject: RE: [rt.cpan.org #84245] Q re IPC::CMD and executable suffix
Date: Thu, 28 Mar 2013 14:38:10 -0400
To: <bug-IPC-Cmd [...] rt.cpan.org>
From: "Green, Paul" <Paul.Green [...] stratus.com>
Thanks, Chris. I'll look into these programs. PG Show quoted text
-----Original Message----- From: chris@bingosnet.co.uk via RT [mailto:bug-IPC-Cmd@rt.cpan.org] Sent: Wednesday, March 27, 2013 6:19 PM To: Green, Paul Subject: Re: [rt.cpan.org #84245] Q re IPC::CMD and executable suffix <URL: https://rt.cpan.org/Ticket/Display.html?id=84245 > On Wed, Mar 27, 2013 at 02:52:14PM -0400, Paul Green via RT wrote:
> Wed Mar 27 14:52:14 2013: Request 84245 was acted upon. > Transaction: Ticket created by Paul.Green@stratus.com > Queue: IPC-Cmd > Subject: Q re IPC::CMD and executable suffix > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: Paul.Green@stratus.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=84245 > > > > Gentle IPC::Cmd maintainer, > > > > I maintain the port of Perl for the Stratus VOS/OpenVOS operating > system. This operating system requires that the name of any executable > file end with the suffix ".pm". (Not to be confused with the suffix > for perl modules). > > > > To be guaranteed to finding a VOS executable program **in the file > system**, the .pm suffix must be specified. The suffix is NOT > required when simply typing in commands (although it can be supplied > here, if one wishes to do so). > > > > In my experience, most perl code is written and tested in a Unix/Linux > environment and hence does not concern itself with executable suffixes. > Because the Windows environment has a similar requirement, some code > has been modified to deal with suffixes, but this is not universal. > > > > I'm wondering whether or how IPC::Cmd should be modified to deal with > this issue for VOS. It is easy enough to special-case VOS; the $^O > variable will return 'vos' on our system. Have you run into this issue > before? How do you suggest I proceed?
The can_run() function of IPC::Cmd is used to locate executables. This uses MM->maybe_command from ExtUtils::MakeMaker. ExtUtils::MM_VOS inherits from ExtUtils::MM_Unix and will probably need to override maybe_command to check for the .pm suffix (similar to how ExtUtils::MM_Win32 does for .exe et al). -- Chris Williams aka BinGOs PGP ID 0x4658671F http://www.gumbynet.org.uk ==========================