From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199607122211.RAA08055@appaloosa.asic.sc.ti.com> Date: Fri, 12 Jul 1996 17:11:52 -0500 From: Jim Meyering Subject: Re: add. option for cp(1) From: koenig@tat.physik.uni-tuebingen.de (Harald Koenig) Date: Fri, 12 Jul 1996 19:35:55 +0200 (MET DST) | I just realized that cp(1) in fileutils-3.12 (in Red Hat 3.0.3) is still | missing an option to create holes in sparse files when copying them Thanks for the patch. That feature is in fileutils-3.13. I put fileutils-3.13.tar.gz on prep.ai.mit.edu last night, but haven't written the announcement yet. Here's cp's help message: % cp --help Usage: cp [OPTION]... SOURCE DEST or: cp [OPTION]... SOURCE... DIRECTORY Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. -a, --archive same as -dpR -b, --backup make backup before removal -d, --no-dereference preserve links -f, --force remove existing destinations, never prompt -i, --interactive prompt before overwrite -l, --link link files instead of copying -p, --preserve preserve file attributes if possible -r copy recursively, non-directories as files --sparse=WHEN control creation of sparse files -s, --symbolic-link make symbolic links instead of copying -u, --update copy only older or brand new files -v, --verbose explain what is being done -x, --one-file-system stay on this file system -P, --parents append source path to DIRECTORY -R, --recursive copy directories recursively -S, --suffix=SUFFIX override the usual backup suffix -V, --version-control=WORD override the usual version control --help display this help and exit --version output version information and exit By default, sparse SOURCE files are detected by a crude heuristic and the corresponding DEST file is made sparse as well. That is the behavior selected by --sparse=auto. Specify --sparse=always to create a sparse DEST file whenever the SOURCE file contains a long enough sequence of zero bytes. Use --sparse=never to inhibit creation of sparse files. The backup suffix is ~, unless set with SIMPLE_BACKUP_SUFFIX. The version control may be set with VERSION_CONTROL, values are: t, numbered make numbered backups nil, existing numbered if numbered backups exist, simple otherwise never, simple always make simple backups As a special case, cp makes a backup of SOURCE when the force and backup options are given and SOURCE and DEST are the same name for an existing, regular file. -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null