jpic/bashworks — pull request #2 by bishopb (2014-08-05 01:15:08+00:00)
Title: Support module paths with spaces in the path. Increase diagnostic output...

... in module_debug and when the module path cannot be found.

Fixes this scenario:
```
ncpop@ncpop.rchitest.3cisd.com [~/tmp]# cat path-without-spaces/another/source.sh
#!/usr/bin/env bash

function another_load() {
echo "I am another loaded"
}
ncpop@ncpop.rchitest.3cisd.com [~/tmp]# cat path\ with\ a\ space/example/source.sh
#!/usr/bin/env bash

function example_load() {
echo "I am loaded"
}
ncpop@ncpop.rchitest.3cisd.com [~/tmp]# source bashworks/module/source.sh
ncpop@ncpop.rchitest.3cisd.com [~/tmp]# module_repo bashworks
ncpop@ncpop.rchitest.3cisd.com [~/tmp]# module_repo path-without-spaces/
ncpop@ncpop.rchitest.3cisd.com [~/tmp]# module_debug | grep another
- another, find from /home/ncpop/tmp/path-without-spaces/another
- path-without-spaces_another, find from ./path-without-spaces/another
ncpop@ncpop.rchitest.3cisd.com [~/tmp]# module another
I am another loaded
ncpop@ncpop.rchitest.3cisd.com [~/tmp]# module_repo path\ with\ a\ space/
find: `/home/ncpop/tmp/space': No such file or directory
find: `/home/ncpop/tmp/path': No such file or directory
find: `/home/ncpop/tmp/with': No such file or directory
find: `/home/ncpop/tmp/a': No such file or directory
find: `/home/ncpop/tmp/space': No such file or directory
find: `/home/ncpop/tmp/path': No such file or directory
find: `/home/ncpop/tmp/a': No such file or directory
find: `/home/ncpop/tmp/with': No such file or directory
```