stow/t
LE Manh Cuong 8544b2f0f5 Allow directory with trailing and leading spaces
- The `sanitize_path_options` functions remove all trailing
 and leading spaces. So any valid directory like ` 123`,
 `123 ` can not be used

 - Also if there are two directories ` 123` and `123`, and if
 user pick the ` 123` as option to `-d` or `-t`, then stow pick
 directory `123` as the argument instead of ` 123` as user want.

    ```
    STOW_DIR=. stow -n -v3 -t \ 123 456
    stow dir is /tmp/test
    stow dir path relative to target 123 is ..
    cwd now 123
    cwd restored to /tmp/test
    cwd now 123
    Planning stow of package 456...
    Stowing contents of ../456 (cwd=/tmp/test/123)
    Planning stow of package 456... done
    cwd restored to /tmp/test
    WARNING: in simulation mode so not modifying filesystem.
    ```
 - This commit remove the check in `sanitize_path_options` function,
 and now stow can work with those directories. There have been a check
 for valid directory, so we are safe.
2015-11-13 20:17:58 +07:00
..
chkstow.t Use make_invalid_link() to reliably setup symlink fixtures. 2012-02-18 20:33:34 +00:00
cleanup_invalid_links.t Use make_invalid_link() to reliably setup symlink fixtures. 2012-02-18 20:33:34 +00:00
cli_options.t Allow directory with trailing and leading spaces 2015-11-13 20:17:58 +07:00
defer.t Numerous fixes so that `make distcheck' succeeds. 2011-11-26 16:34:57 +00:00
examples.t Remove accidentally duplicated code. 2012-02-19 19:16:00 +00:00
find_stowed_path.t Numerous fixes so that `make distcheck' succeeds. 2011-11-26 16:34:57 +00:00
foldable.t Numerous fixes so that `make distcheck' succeeds. 2011-11-26 16:34:57 +00:00
ignore.t Add another ignore example to the manual and test suite. 2011-12-21 11:45:43 +00:00
join_paths.t Add another test to join_paths.t 2011-11-26 15:10:28 +00:00
parent.t Clean up coding style in tests 2011-11-26 15:10:28 +00:00
stow.t fix stowing of relative links when --no-folding is used 2015-01-01 19:02:46 +00:00
testutil.pm make it more obvious when target (sub)directory is skipped 2014-09-23 01:37:54 +01:00
unstow.t make it more obvious when target (sub)directory is skipped 2014-09-23 01:37:54 +01:00
unstow_orig.t make it more obvious when target (sub)directory is skipped 2014-09-23 01:37:54 +01:00