App-spaceless

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    My motivation for writing this script was trying to get perlbrew to
    work on Cygwin. Since Windows frequently includes spaces in its %PATH%
    environment variable, and cygwin inherits them.

     xian-x86_64% source ~/perl5/perlbrew/etc/cshrc
     setenv: Too many arguments.
     xian-x86_64% eval `spaceless PATH`
     xian-x86_64% source ~/perl5/perlbrew/etc/cshrc
     xian-x86_64%

    I could have manually updated my %PATH% to not include spaces, or
    better yet submitted a patch to perlbrew to fix its spacing problem.
    This probably won't be the last script that I will have the spaces in
    the %PATH% problem with.

 Visualizing the PATH

    Reading the %PATH% variable can be difficult, especially if you have
    already removed the spaces and are using the short version.

     C:\> echo %PATH%

bin/spaceless  view on Meta::CPAN

My motivation for writing this script was trying to get L<perlbrew> to work on Cygwin.
Since Windows frequently includes spaces in its C<%PATH%> environment variable, and
cygwin inherits them.

 xian-x86_64% source ~/perl5/perlbrew/etc/cshrc
 setenv: Too many arguments.
 xian-x86_64% eval `spaceless PATH`
 xian-x86_64% source ~/perl5/perlbrew/etc/cshrc
 xian-x86_64%

I could have manually updated my C<%PATH%> to not include spaces, or better yet submitted
a patch to L<perlbrew> to fix its spacing problem.  This probably won't be the last script
that I will have the spaces in the C<%PATH%> problem with.

=head2 Visualizing the PATH

Reading the C<%PATH%> variable can be difficult, especially if you have already
removed the spaces and are using the short version.

 C:\> echo %PATH%
 N:\lang\perl\strawberry\x86\5.18.2\c\bin;N:\lang\perl\strawberry



( run in 0.257 second using v1.01-cache-2.11-cpan-05444aca049 )