Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: APPerl: "osname=cosmo" problem

by Corion (Patriarch)
on Jun 08, 2023 at 05:23 UTC ( [id://11152690] : note . print w/replies, xml ) Need Help??


in reply to APPerl: "osname=cosmo" problem

APPerl / APE binaries run on the "Cosmopolitan" compatibility wrapper, which emulates some Linux API. Hence it makes some sense that it identifies as its own OS instead of the native OS.

I'm not sure what actual use case you want, but I guess you will have to submit patches for all the relevant modules to recognize/handle cosmo as OS. In the case of File::Spec, I think File::Spec::Unix is what you actually want, as I don't know if Cosmopolitan provides a Cygwin-like wrapper for filenames.

Replies are listed 'Best First'.
Re^2: APPerl: "osname=cosmo" problem
by kcott (Archbishop) on Jun 08, 2023 at 05:40 UTC

    G'day Corion,

    ++ Thanks for the very quick response.

    This is an evaluation for $work. Various Linux and MSWin platforms are in general use; I only used Cygwin because it was a handy, third platform to test.

    I'll wait to see what others might have to say; however, based on your comments, I suspect this may be inappropriate for $work.

    — Ken

      Depending how close you have to get to the OS and how much the existing scripts rely on OS features (Windows newline translation etc.), yes, I think further work is needed on the Perl side.</>