diff options
author | Yasushi SHOJI <yashi@atmark-techno.com> | 2009-11-27 21:21:42 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2009-11-27 21:21:42 +0100 |
commit | 5ce6b0473c8346c7c6d4fc68057d5ef174f4c132 (patch) | |
tree | f11030a15916eb0ebd2981631e22168da828b4e5 /test/space-in-filenames.test | |
parent | 20df24103ae87e96472edff88369379fe20e4018 (diff) | |
download | quilt-5ce6b0473c8346c7c6d4fc68057d5ef174f4c132.tar.gz |
add, files, remove: accept file name with spaces
http://savannah.nongnu.org/bugs/?19477 and
http://lists.nongnu.org/archive/html/quilt-dev/2009-09/msg00010.html
reported that the current quilt does not work with file name with
spaces. we all know that it is tough to handle it with bash script and
fix all quilt commands.
this patch only fixes add, files, and remove command with normal code
path. no excessive test has been done but a few test code is also
added. hope this starts fixing quilt to handle all possible path
pattern.
Diffstat (limited to 'test/space-in-filenames.test')
-rw-r--r-- | test/space-in-filenames.test | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/space-in-filenames.test b/test/space-in-filenames.test new file mode 100644 index 0000000..bbefe23 --- /dev/null +++ b/test/space-in-filenames.test @@ -0,0 +1,43 @@ +$ rm -rf d +$ mkdir -p d/patches +$ cd d +$ quilt new test.diff +>Patch patches/test.diff is now on top + +$ echo foo > foo +$ quilt add foo +> File foo added to patch patches/test.diff + +$ quilt files +> foo + +$ quilt add "foo bar" +> File foo bar added to patch patches/test.diff + +$ quilt files +> foo +> foo bar + +$ quilt add "a: b [c]" +> File a: b [c] added to patch patches/test.diff + +$ quilt files +> a: b [c] +> foo +> foo bar + +$quilt remove "a: b [c]" +> File a: b [c] removed from patch patches/test.diff + +$ quilt files +> foo +> foo bar + +$quilt remove "foo bar" +> File foo bar removed from patch patches/test.diff + +$ quilt files +> foo + +$ cd .. +$ rm -rf d |