Commit Graph

9419 Commits

Author SHA1 Message Date
Jim Meyering d9a1527093 *** empty log message *** 2000-09-07 07:08:50 +00:00
Jim Meyering bd5a2dc9e1 (cut invocation): Note that when using -f, lines with no delimiters are
also printed.
2000-09-07 07:08:39 +00:00
Jim Meyering 95ed06eb09 (usage): Note that when using -f, lines with no delimiters are also printed. 2000-09-07 07:08:17 +00:00
Jim Meyering 19ee58e090 Remove obsolete comment block. 2000-09-07 07:01:11 +00:00
Jim Meyering b61f6618aa *** empty log message *** 2000-09-06 20:04:17 +00:00
Jim Meyering 7ed190837a (_getopt_internal): Update from glibc. 2000-09-06 20:04:06 +00:00
Jim Meyering 812dc8da17 *** empty log message *** 2000-09-05 12:15:38 +00:00
Jim Meyering b150de0a99 Redirect stdout to stderr before trying to
remove the temp directory.  Otherwise, the `rm -rf' would get an
error because the output file wouldn't be closed and the directory
wouldn't be `empty'.
2000-09-05 12:15:30 +00:00
Jim Meyering 2757680bbf . 2000-09-05 12:04:29 +00:00
Jim Meyering 9fecbb3105 Remove the `cp -bdl symlink foo' case.
since it's no longer portable (hard link to a symlink).
2000-09-05 12:02:40 +00:00
Jim Meyering b0126126d2 Remove the `cp -dl sl1 sl2' case,
since it's no longer portable (hard link to a symlink).
2000-09-05 11:53:03 +00:00
Jim Meyering 3260d507f5 *** empty log message *** 2000-09-05 10:41:18 +00:00
Jim Meyering 537879ee7d . 2000-09-05 10:22:35 +00:00
Jim Meyering 0c483136cf . 2000-09-04 20:51:43 +00:00
Jim Meyering 106eedf2a8 Remove declaration of lstat, now that it's in copy.h. 2000-09-04 20:51:29 +00:00
Jim Meyering cec4418796 Move declaractions of lstat, stat, and rpl_lstat
as well as the definition of lstat from cp.c to this file.
2000-09-04 20:51:12 +00:00
Jim Meyering 25e0824d28 Move declaractions of lstat, stat, and rpl_lstat
as well as the definition of lstat from here to copy.h.
2000-09-04 20:50:45 +00:00
Jim Meyering 739a268735 *** empty log message *** 2000-09-04 17:01:23 +00:00
Jim Meyering 7c5d2581a0 . 2000-09-04 16:58:38 +00:00
Jim Meyering 9f99fca934 mv's --force (-f) option is no longer needed for
this test, now that all it does is cancel --interactive (-i).
2000-09-04 16:58:25 +00:00
Jim Meyering d7dfef329f *** empty log message *** 2000-09-04 16:56:17 +00:00
Jim Meyering daaa56f985 Add new tests using cp's --rem option.
Reflect the fact that cp's -f option no longer causes cp to remove the
destination file before trying to open it.
Reflect the fact that `cp -bdl' now makes a backup when copying a
symlink onto the file it points to (FIXME: look into this, and why
cp -bl does *not* do so).
2000-09-04 16:56:09 +00:00
Jim Meyering 143be7ea2d *** empty log message *** 2000-09-04 15:22:08 +00:00
Jim Meyering 4cb0cadf96 (do_link): Tweak diagnostics. 2000-09-04 15:22:00 +00:00
Jim Meyering b5545e03db (same_file_ok): Hoist a test. 2000-09-04 14:49:30 +00:00
Jim Meyering 4dfe280c99 *** empty log message *** 2000-09-04 14:46:18 +00:00
Jim Meyering 616d9920c0 factor out backup/same test, put it after if-else. 2000-09-04 14:45:42 +00:00
Jim Meyering 65a185d754 (same_file_ok): factor some more. improve -- now passes all tests.
checkpoint
2000-09-04 14:42:32 +00:00
Jim Meyering 5dcb9b11aa *** empty log message *** 2000-09-04 08:16:16 +00:00
Jim Meyering fbc1b0b06f *** empty log message *** 2000-09-04 08:03:56 +00:00
Jim Meyering 1f64389cd5 *** empty log message *** 2000-09-04 07:27:49 +00:00
Jim Meyering e2017655a1 *** empty log message *** 2000-09-04 07:25:10 +00:00
Jim Meyering 09af7ed5f7 *** empty log message *** 2000-09-04 07:09:08 +00:00
Jim Meyering 2c663e070c *** empty log message *** 2000-09-03 18:50:55 +00:00
Jim Meyering 799114aa8c (cp_option_init): Initialize new members. 2000-09-03 18:50:49 +00:00
Jim Meyering 8ed20d830e . 2000-09-03 18:50:14 +00:00
Jim Meyering a513c6c10e . 2000-09-03 18:49:37 +00:00
Jim Meyering 35640da77d tweak comment 2000-09-03 15:25:11 +00:00
Jim Meyering b8fbc41536 Remove obsolete comment block.
(cp_option_init): Initialize new members.
(usage): Reflect the fact that --force (-f) relates only to whether
mv prompts.
(main): Remove uses of old `force' option member.
2000-09-03 14:36:50 +00:00
Jim Meyering 475fb2e732 (enum): Add UNLINK_DEST_BEFORE_OPENING.
[long_options]: Add an entry for --remove-destination.
(usage): Describe --remove-destination.
(do_copy): Use unlink_dest_after_failed_open member, not `force.'
(cp_option_init): Initialize new members.
(main): Handle UNLINK_DEST_BEFORE_OPENING (aka --remove-destination).
2000-09-03 14:09:23 +00:00
Jim Meyering b1bf91b67d correct description of unlink_dest_after_failed_open 2000-09-03 13:56:15 +00:00
Jim Meyering e2a422b8ef comment 2000-09-03 13:18:22 +00:00
Jim Meyering 81ab1beb52 Use strcoll (not strcmp) when comparing file names. 2000-09-03 13:06:41 +00:00
Jim Meyering c199939348 (struct cp_options) [force]: Remove member.
[unlink_dest_before_opening]: Add member.
[unlink_dest_after_failed_open]: Add member.
2000-09-03 13:04:44 +00:00
Jim Meyering 76685fb1e9 (same_file_ok): New function, extracted from copy_internal,
and partially rewritten.
(copy_internal): Unlink destination file when unlink_dest_before_opening
option is set, and when the source is neither a regular file nor a directory.
2000-09-03 13:01:49 +00:00
Jim Meyering 3e8dff57b2 *** empty log message *** 2000-09-02 09:44:47 +00:00
Jim Meyering 1207fe6788 *** empty log message *** 2000-09-02 09:32:01 +00:00
Jim Meyering 24946d8604 *** empty log message *** 2000-09-02 09:30:03 +00:00
Jim Meyering aa8f9f7e67 *** empty log message *** 2000-09-02 09:28:31 +00:00
Jim Meyering 9136c97143 *** empty log message *** 2000-09-02 09:08:31 +00:00