No description
8544b2f0f5
- 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. |
||
---|---|---|
automake | ||
bin | ||
doc | ||
lib | ||
t | ||
.gitignore | ||
.travis.yml | ||
aclocal.m4 | ||
AUTHORS | ||
Build.PL | ||
configure.ac | ||
COPYING | ||
default-ignore-list | ||
INSTALL | ||
Makefile.am | ||
MANIFEST | ||
MANIFEST.SKIP | ||
META.json | ||
META.yml | ||
NEWS | ||
README | ||
THANKS | ||
TODO |
README for GNU Stow =================== This is GNU Stow, a symlink farm manager program which takes distinct packages of software and/or data located in separate directories on the filesystem, and makes them appear to be installed in the same place. For example, /usr/local/bin could contain symlinks to files within /usr/local/stow/emacs/bin, /usr/local/stow/perl/bin etc., and likewise recursively for any other subdirectories such as .../share, .../man, and so on. This is particularly useful for keeping track of system-wide and per-user installations of software built from source, but can also facilitate a more controlled approach to management of configuration files in the user's home directory, especially when coupled with version control systems. Stow is implemented as a combination of a Perl script providing a CLI interface, and a backend Perl module which does most of the work. You can get the latest information about Stow from the home page: http://www.gnu.org/software/stow/ License ------- Stow is free software, licensed under the GNU General Public License, which can be found in the file COPYING. Installation ------------ See INSTALL for installation instructions. Feedback -------- Please do send comments, questions, and constructive criticism. The mailing lists and any other communication channels are detailed on the above home page. Brief history ------------- Stow was inspired by Carnegie Mellon's "Depot" program, but is substantially simpler. Whereas Depot requires database files to keep things in sync, Stow stores no extra state between runs, so there's no danger (as there is in Depot) of mangling directories when file hierarchies don't match the database. Also unlike Depot, Stow will never delete any files, directories, or links that appear in a Stow directory (e.g., /usr/local/stow/emacs), so it's always possible to rebuild the target tree (e.g., /usr/local).