App-spaceless

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

NAME

    spaceless - Remove spaces and other hazards from your PATH

VERSION

    version 0.08

SYNOPSIS

    Convert PATH (by default):

     cygwin% spaceless
     PATH=/usr/bin:/cygdrive/c/PROGRA~2/NVIDIA~1/PhysX/Common:...
     export PATH

    Convert another PATH style environment variable

     cygwin% spaceless PERL5LIB
     PERL5LIB=/PERL~1/lib:/PERL~2/lib
     export PERL5LIB

    Update the PATH in the current shell (works with both sh and csh):

     cygwin% eval `spaceless PATH`

    Same thing from cmd.exe or command.com prompt:

     C:\> spaceless PATH -f path.bat
     C:\> path.bat

DESCRIPTION

    Although legal in most modern operating system directory names, spaces
    are only frequently encountered in Windows. This can be troublesome for
    some tools that do not take such antics into account. Fortunately,
    Windows provides alternate file and directory names for any name that
    is not compatible with MS DOS. Since spaces were never supported by MS
    DOS we can use these alternate names for tools that don't take spaces
    into account.

    spaceless converts PATH style environment variables on windows into
    equivalents that do not have spaces. By default it uses Shell::Guess to
    make a reasonable guess as to the shell you are currently using (not
    your login shell). You may alternately specify a specific shell type
    using one of the options below.

    spaceless will not convert long directory (non 8.3 format) names that
    do not have spaces, as these are usually handled gracefully by scripts
    that are space challenged.

OPTIONS

 --cmd

    Generate cmd.exe configuration

 --command

    Generate command.com configuration

 --csh

    Generate c shell configuration

 -f filename

    Write configuration to filename instead of standard output

 --expand | -x

    Expand short paths to long paths (adding any spaces that may be back
    in)

 --fish

    Generate fish shell configuration

 --help

    Print help message and exit

 --korn

    Generate korn shell configuration

 --list | -l



( run in 0.566 second using v1.01-cache-2.11-cpan-0b5f733616e )