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

📄 rename02.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: Incremental archives should be able to handle directories# moved between directory hierarchies. AT_SETUP([move between hierarchies])AT_KEYWORDS([incremental rename rename02])AT_TAR_CHECK([AT_SORT_PREREQmkdir foogenfile --file foo/file1genfile --file foo/file2mkdir foo/bargenfile --file foo/bar/file.rmkdir foo/bar/bazgenfile --file foo/bar/baz/file.zsleep 1echo "Creating base archive"tar -g incr -cf arch.1 -v foomv foo/bar/baz fooecho "Creating incremental archive"tar -g incr -cf arch.2 -v foomv foo oldtar xfg arch.1 /dev/null 2>tmperrsort tmperr >&2echo "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],[Creating base archivefoo/foo/bar/foo/bar/baz/foo/file1foo/file2foo/bar/file.rfoo/bar/baz/file.zCreating incremental archivefoo/foo/bar/foo/baz/Begin directory listing 1foofoo/barfoo/bar/bazfoo/bar/baz/file.zfoo/bar/file.rfoo/file1foo/file2End directory listing 1foo/foo/bar/foo/baz/Begin directory listing 2foofoo/barfoo/bar/file.rfoo/bazfoo/baz/file.zfoo/file1foo/file2End directory listing 2],[tar: foo/bar: Directory is newtar: foo/bar/baz: Directory is newtar: foo/baz: Directory has been renamed from `foo/bar/baz'],[],[],[gnu, oldgnu, posix])AT_CLEANUP# End of rename02.at

⌨️ 快捷键说明

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