1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- AT_SETUP([keep-old-files])
- AT_KEYWORDS([extract extrac18 old-files keep-old-files])
- AT_TAR_CHECK([
- mkdir dir
- cd dir
- echo 'Old file a' > a
- echo 'Old file b' > b
- tar cf ../archive .
- rm b
- echo 'File a' > a
- tar -x -k -f ../archive
- echo status=$?
- cat a
- ],
- [0],
- [status=2
- File a
- ],
- [tar: ./a: Cannot open: File exists
- tar: Exiting with failure status due to previous errors
- ])
- AT_CLEANUP
|