⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rename03.at

📁 gnu tar 源码包。 tar 软件是 Unix 系统下的一个打包软件
💻 AT
字号:
# Process this file with autom4te to create testsuite. -*- Autotest -*-# Test suite for GNU tar.# Copyright (C) 2006, 2007 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 3, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA# 02110-1301, USA.# Description: Handling of cyclic renames in incremental archives.AT_SETUP([cyclic renames])AT_KEYWORDS([incremental rename rename03 cyclic-rename])AT_TAR_CHECK([AT_SORT_PREREQmkdir foogenfile --file foo/file1genfile --file foo/file2mkdir foo/agenfile --file foo/a/fileamkdir foo/bgenfile --file foo/b/filebmkdir foo/cgenfile --file foo/c/filecsleep 1echo "First dump"echo "First dump">&2tar -g incr -cf arch.1 -v foo 2>tmperrsort tmperr >&2# Shuffle directories:(cd foomv a $$mv c amv b cmv $$ b)echo "Second dump"echo "Second dump" >&2tar -g incr -cf arch.2 -v foo 2>tmperrsort tmperr >&2tar xfg arch.1 /dev/null echo "Begin directory listing 1"find foo | sort echo "End directory listing 1"tar xfgv arch.2 /dev/nullecho Begin directory listing 2find foo | sortecho End directory listing 2],[0],[First dumpfoo/foo/a/foo/b/foo/c/foo/file1foo/file2foo/a/fileafoo/b/filebfoo/c/filecSecond dumpfoo/foo/a/foo/b/foo/c/Begin directory listing 1foofoo/afoo/a/fileafoo/bfoo/b/filebfoo/cfoo/c/filecfoo/file1foo/file2End directory listing 1foo/foo/a/foo/b/foo/c/Begin directory listing 2foofoo/afoo/a/filecfoo/bfoo/b/fileafoo/cfoo/c/filebfoo/file1foo/file2End directory listing 2],[First dumptar: foo/a: Directory is newtar: foo/b: Directory is newtar: foo/c: Directory is newSecond dumptar: foo/a: Directory has been renamed from `foo/c'tar: foo/b: Directory has been renamed from `foo/a'tar: foo/c: Directory has been renamed from `foo/b'],[],[],[gnu, oldgnu, posix])AT_CLEANUP# End of rename03.at

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -