123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- AT_SETUP([Exclude])
- AT_KEYWORDS([options positional positional01 exclude])
- AT_CHECK([
- AT_SORT_PREREQ
- mkdir dir
- > dir/A.a
- > dir/B.a
- > dir/A.b
- tar -cf a.tar --exclude '*.b' dir
- echo $?
- tar -tf a.tar | sort
- tar -cf a.tar dir --exclude '*.b'
- echo $?
- tar -tf a.tar | sort
- ],
- [0],
- [0
- dir/
- dir/A.a
- dir/B.a
- 2
- dir/
- dir/A.a
- dir/A.b
- dir/B.a
- ],
- [tar: The following options were used after any non-optional arguments in archive create or update mode. These options are positional and affect only arguments that follow them. Please, rearrange them properly.
- tar: --exclude '*.b' has no effect
- tar: Exiting with failure status due to previous errors
- ])
- AT_CLEANUP
|