Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: add. option for cp(1)
@ 1996-07-12 22:11 Jim Meyering
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Meyering @ 1996-07-12 22:11 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread
* add. option for cp(1)
@ 1996-07-12 17:35 Harald Koenig
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Koenig @ 1996-07-12 17:35 UTC (permalink / raw)


Hi,

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
which I've added long time ago for my own.  here is my patch I'm using 
quite happily:

-------------------------------------------------------------------------------
begin 644 fileutils-3.12-patch.gz
M'XL(`!J,YC$"`Z55;6_B1A#^C'_%-)7N(-@$FR04TE11F^2$E(03W)UZ[;76
MVE[""K-K[:Z!7'3_O3-K(&^D+ZH%!GOF>7;>)P@"F(B<EU;D)NBTPNC`Z/0@
M+0)6KEII:S@:O*N-2PG#U`)$T([Z^#DZAK#7._2:S>;?H6O72L(E3R#L0!CV
M.V&_W2/@D7=V!L%1US^&)MZ[<';F`4!0^A`$99$QR^'YE:KB#I3,\99G7(/2
MD&@F,Y!\Z6PP7^07Q[(@E@77B3(O:/BJR)F0L)PR"\)`PH6\A4Q)OD&O"(W/
M`7$&YLY8/M^@C65D`]@I0DD.E9RP3<1>$W;.9CR8*C3HJ?V:DUN5`"TP!=-H
MWQ/+WQ,>WW-IS7/+65%P]-:H4J<<"F:G8!6<#T87OWP8CCYO*$9$H7E::B,6
M?$<(,X%2J[1`,[9Z^=T&/R:\*2<3L3H=?[R\'/SZ@%<85"TRCOYS*$W)<DA8
M.BL+J`#$$;Q63YM:^C`MX48M`#H0=?J'43^,_J&67M;1!E354=AI4R'13\]5
MTL$^#"8@E0R^<JU\*+20UAF-#AB!7/C!7,J,Z0Q4:8O2`I427PG;`M@_\$AL
M10H$-%.UC-?($P^\YG-^ROCNQ!)5\Q$5:<:5YBFT3[SF]B!C=8D=I@I+]J5*
M&@NYDK<QOC&__P&G'MQ3@N[WF$ZGF+(]'RV(F;XMYU@N/MQ\O+KRX2U[^\U?
M1Z7GHG(8;?OK?B\7<O8*,">@4Y(JP`;C$_S*],4Y;R8YNXT?*?C0WB"?M<UN
M*"K%I!172CZ$"&\2_*%S7K'Q>FOCNDEVGT#-4=&N=>WTWREJ;KA>O.+R1EH!
M7(B[-+N:X0_A.L1$4\Z9F<4SD>>4XJZ[X,_J-=3;#:J@`'``T?BHUU/4NN46
MLQQ3NJ&.QZ8^X!W'V!Y+,@Q5H4VY6+T?C?N?^FC;MBQ<V/X[T?4N)JC5:FA]
MG:ITOP'M1@.^.X6+X67#<[U_[VUFX%+8=`KUM.%B$!U%5&;1T;$?MET0D&97
MGM&\\,1)$YR$,]=(M91AIV!:^_@?GG8'*C<?E+%1ULIC5"86(^8%DE<#**X&
M$,+0&W3YR4$N56%T['(5=@[1WJH?R%?-;:EEO&!YU9'XVH5/Q@C.8JOL(PD!
M<F9LO-3"\GC.LLK>2B&`G3WNJJ(:V]@V)G5&<@EUG&[K"AS&H_/AS=7G1G7*
M!&6/]'_$;*R=Z$:5$]W>MJGIJ@82#3BWE*8,MQ-?XI),<I7.#$H8KCQ5YK@M
ME9ZS/+^C`"4<ER?/>`83W*:L`JL)"-P^1GS%2D=*29JX+'..CN/@=!ITU)I;
MR(>#<2LR-PA;-/B"RCAR9QP/QJ.+=^A7TL+PS57&&_#F#52/=!;\M'Y8T^[#
K^<6G^.?QX+>+!I7Y_V%*RHF38"G7GM>8(_[FP?>X7,7$^POA:;+/#PD``.[#
`
end

-- 
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-07-12 22:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-07-12 22:11 add. option for cp(1) Jim Meyering
  -- strict thread matches above, loose matches on Subject: below --
1996-07-12 17:35 Harald Koenig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox