http://qs321.pair.com?node_id=11100252


in reply to Re^2: Can't find or uninstall version of perl
in thread Can't find or uninstall version of perl

I'm not, to my knowledge, using cygwin or anything like it.

But you do have Cygwin or something like it (maybe msys ?). Nothing else is going to report a path that begins with "/usr/bin".

I have both Cygwin and Msys:
C:\>which which 'which' is not recognized as an internal or external command, operable program or batch file. C:\>set PATH=C:\_64\msys64\usr\bin;%PATH% C:\>which which /usr/bin/which C:\>
and, for Cygwin:
C:\>which which 'which' is not recognized as an internal or external command, operable program or batch file. C:\>set PATH=C:\cygwin\bin;%PATH% C:\>which which /usr/bin/which C:\>
Cheers,
Rob

Replies are listed 'Best First'.
Re^4: Can't find or uninstall version of perl
by ScarletObsidian (Novice) on May 19, 2019 at 13:31 UTC

    I took a look at my path variable. Turns out I have something called MinGW, so MINimalist Gnu for Windows, installed. It shows up right after Brackets' Path entry and before a whole stack of earlier Strawberry perl entries.

     which which returns:  usr/bin/which

     which perl returns: usr/bin/perl

    perl -e "print$^X" returns: perl

    Note, this is only true if I open a default windows terminal; if I use the portable shell executable packaged with portable Strawberry perl, which perl gives me the correct file path (to my desktop, atm, where I unpacked portable Strawberry perl).