diff options
author | Meudwy <meudwy@meudwy.uk> | 2023-07-25 11:55:26 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2023-07-25 16:07:38 +0200 |
commit | 75de7d47da797b5cf6e7a859a1bff030f7b571a3 (patch) | |
tree | 477c73988a9ded37345799e28ed2c4f7d789d666 /t | |
parent | 43f2cb8b491d95eb79b6b6d404865135971fe642 (diff) | |
download | mblaze-75de7d47da797b5cf6e7a859a1bff030f7b571a3.tar.gz mblaze-75de7d47da797b5cf6e7a859a1bff030f7b571a3.tar.xz mblaze-75de7d47da797b5cf6e7a859a1bff030f7b571a3.zip |
minc: read directory names from stdin
This matches `mlist` where it can take directories as arguments or via stdin. Closes: #244 [via git-merge-pr]
Diffstat (limited to 't')
-rw-r--r-- | t/9000-minc.t | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/t/9000-minc.t b/t/9000-minc.t index 3d5b789..9b29194 100644 --- a/t/9000-minc.t +++ b/t/9000-minc.t @@ -1,7 +1,7 @@ #!/bin/sh -e cd ${0%/*} . ./lib.sh -plan 1 +plan 2 rm -rf test.dir mkdir test.dir @@ -16,4 +16,10 @@ inbox/new/2 check_test 'minc' -eq 2 'minc inbox | wc -l' +while read f; do touch "$f"; done <<! +inbox/new/3:2, +inbox/new/4 +! + +check_test 'minc stdin' -eq 2 'echo inbox | minc | wc -l' ) |