Strawberry Perl



  • I was going to download some application, and found out to run it I need Perl. So I tried installing Strawberry Perl, which seems to be the recommended version. The default install directory is c:\strawberry, which I dislike - I like all my applications to be in the same place - so I tried installing it to c:\Program Files\Strawberry Perl.

    The sad part is this was created in March 2013.



  • It's possible that it supports spaces, itself, but being a port of Unix Perl, it's probably expected to run a lot of legacy code that is not capable of handling spaces and non-7-bit-ascii characters.



  • But Unix supports Unicode file names, and spaces, doesn't it?



  • Varies. I have a few files on my Linux system with utf-8 chars in them. Some apps handle them fine, some don't. So, I wind up making symlinks pointing to the utf files with 7-bit-icized names themselves. It can also depend on the file name. And, while Unix/Linux do support spaces in file names, a lot of older software does not, so it's considered a best-practice to keep spaces out of files.



  • @Circuitsoft said:

    It's possible that it supports spaces, itself, but being a port of Unix Perl, it's probably expected to run a lot of legacy code that is not capable of handling spaces and non-7-bit-ascii characters.

    And yet Unix supports both spaces and UTF characters in file paths.

    So what the fuck?



  • @Circuitsoft said:

    it's probably expected to run a lot of legacy code that is not capable of handling spaces and non-7-bit-ascii characters.
     

    Are you talking about Perl or the Perl Installer here?

    The installer not being able to deal with spaces in the installation path IS a WTF.

    Configurator? Try ActivePerl. Installs into C:\Program Files\ActiveState Perl\ quite happily.



  • Happens all the times. Woe is unto you if you try to use RMagick under Windows with the required ImageMagick libraries installed under "C:\Program Files\ImageMagick".



  • @configurator said:

    But Unix supports Unicode file names, and spaces, doesn't it?

    I'm getting the feeling you don't actually want this to work at all.



  • @bridget99 said:

    @configurator said:
    But Unix supports Unicode file names, and spaces, doesn't it?

    I'm getting the feeling you don't actually want this to work at all.

    $ pwd
    /home/ben/ʕ ◔ϖ◔ʔ
    $ hg sync
    pulling from https://code.google.com/p/go
    added 14 changesets with 30 changes to 25 files
    + doc/style.css
    + lib/godoc/package.html
    + lib/godoc/package.txt
    + src/cmd/godoc/doc.go
    + src/cmd/godoc/godoc.go
    + src/cmd/godoc/index.go
    + src/cmd/godoc/utils.go
    + src/cmd/ld/lib.c
    + src/cmd/ld/lib.h
    + src/pkg/go/doc/doc.go
    + src/pkg/go/doc/reader.go
    + src/pkg/go/printer/printer.go
    + src/pkg/net/http/request.go
    + src/pkg/net/http/serve_test.go
    + src/pkg/net/http/server.go
    + src/pkg/net/http/transport_test.go
    + src/pkg/net/multicast_test.go
    + src/pkg/net/unicast_posix_test.go
    + src/pkg/net/url/url.go
    + src/pkg/runtime/mgc0.c
    + src/pkg/runtime/mprof.goc
    + src/pkg/runtime/proc.c
    + src/pkg/runtime/runtime.h
    + src/pkg/runtime/traceback_arm.c
    + src/pkg/runtime/traceback_x86.c
    25 files updated, 0 files merged, 0 files removed, 0 files unresolved
    $ ls
    api      CONTRIBUTORS  include  misc     README      test
    AUTHORS  doc           lib      PATENTS  robots.txt  VERSION.cache
    bin      favicon.ico   LICENSE  pkg      src
    $ 
    


  • Well, Ben... you've certainly shown the rest of us (with our "/etc/bin" and "c:/strawberry") how it's done.



  • @bridget99 said:

    Well, Ben... you've certainly shown the rest of us (with our "/etc/bin" and "c:/strawberry") how it's done.

    $ pwd
    /home/ben/beau29
    $ ls
    "∕etc∕bin" and "C:\Strawberry"
    $ file '"∕etc∕bin" and "C:\Strawberry"'
    "∕etc∕bin" and "C:\Strawberry": ASCII text
    $ cat '"∕etc∕bin" and "C:\Strawberry"'
    Well, Ben... you've certainly shown the rest of us (with our "/etc/bin" and "c:/strawberry") how it's done.
    $ 
    


  • Just make the dir yourself, then install it to C:\Progra~1\Strawb~1.

    Unix Perl actually doesn't need to deal with spaces or unicode in it's installation because it won't ever install to anything other then /usr/bin, /usr/etc, and whatever other global directories with no spaces or unicode it scatters itself across.



  • @MiffTheFox said:

    Unix Perl actually doesn't need to deal with spaces or unicode in it's installation because it won't ever install to anything other then
     

    That's not Perl doing it, it's the installer that's doing it (rpm/dpkg et al).

    Curious to know what would happen if you compiled perl into "/usr/local/bin/prg langs" and try to install some libraries via cpan?



  • @Ben L. said:

    @bridget99 said:
    Well, Ben... you've certainly shown the rest of us (with our "/etc/bin" and "c:/strawberry") how it's done.

    $ pwd
    /home/ben/beau29
    $ ls
    "∕etc∕bin" and "C:\Strawberry"
    $ file '"∕etc∕bin" and "C:\Strawberry"'
    "∕etc∕bin" and "C:\Strawberry": ASCII text
    $ cat '"∕etc∕bin" and "C:\Strawberry"'
    Well, Ben... you've certainly shown the rest of us (with our "/etc/bin" and "c:/strawberry") how it's done.
    $ 
    

    I once had an MP3 file with a slash in it, and Krusader (KDE midnight commander clone) accidentally used the URL encoded version of the filename as input for sprintf. Fun times.



    Edit: I reported the bug and, years later, received an e-mail update that it was fixed. I wasn't using Krusader anymore, or Linux.


  • Discourse touched me in a no-no place

    @blakeyrat said:

    And yet Unix supports both spaces and UTF characters in file paths.

    So what the fuck?

    Unix handles those things just fine. Crappy scripts in crappy scripting languages… not so much.



  • @blakeyrat said:

    And yet Unix supports both spaces and UTF characters in file paths.
     

     

    And newlines! Those are my favorite.


    mint@mint /home $ ls -lh --show-control-chars
    total 0
    drwxr-xr-x 2 root root 40 Mar 29 11:33 Is this the real life?
    Is this just fantasy?
    Caught in a landslide
    No escape from reality
    Open your eyes
    Look up to the skies and see
    I'm just a poor boy, I need no sympathy
    Because I'm easy come, easy go
    A little high, little low
    drwxr-xr-x 22 mint mint 620 Mar 29 11:22 mint

    I still can't manage to set it as the home dir though.



  • I had to use Strawberry Prolog once upon a time, don't remember where it installed to however. Are there lost of Strawberry Things? Do they all go into the same folder? Do they mess each other up?



  • @georgir said:

    Are there lost of Strawberry Things?
     

    Strawberry Cheesecake.

    @georgir said:

    Do they mess each other up?

    Not half.



  • @spamcourt said:

    And newlines! Those are my favorite.

    Obligatory this article about how *nix file names are as broken as everything else on their broken-ass system.

    @David A. Wheeler said:

    This article will try to convince you that adding some tiny limitations on legal Unix/Linux/POSIX filenames would be an improvement. Many programs already presume these limitations, the POSIX standard already permits such limitations, and many Unix/Linux filesystems already embed such limitations — so it’d be better to make these (reasonable) assumptions true in the first place.


  • Discourse touched me in a no-no place

    @Cassidy said:

    @georgir said:

    Are there lost of Strawberry Things?
     

    Strawberry Cheesecake.

     

     

     Eeew.  But also, <ing mce_src="http://images.cryhavok.org/d/1969-1/Penny+Arcade+Strawberry+Shortcake.jpg" src="http://images.cryhavok.org/d/1969-1/Penny+Arcade+Strawberry+Shortcake.jpg"></ing>

    Strawberry Shortcake


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.