1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-06-06 01:36:28 +02:00
Commit Graph

9335 Commits

Author SHA1 Message Date
Jim Meyering c055d35869 *** empty log message *** 2000-08-19 11:07:46 +00:00
Jim Meyering 61a8f5b321 *** empty log message *** 2000-08-19 11:07:37 +00:00
Jim Meyering 0dd04df27f (writeline): Correct comments.
From Bruno Haible.
2000-08-19 11:07:32 +00:00
Jim Meyering dde8f61f1c *** empty log message *** 2000-08-18 07:08:34 +00:00
Jim Meyering 1696188993 (DO_CHOWN): Do not make a special case for non-root.
POSIX.2 requires that cp -p and mv attempt to set the uid of the
destination file, even if you're not root.  This affects behavior
only on hosts that let you give files away via chmod.
2000-08-18 07:08:04 +00:00
Jim Meyering 3804c0288a *** empty log message *** 2000-08-15 13:12:57 +00:00
Jim Meyering 70b951593e Add tests for just-fixed bug. 2000-08-15 13:12:48 +00:00
Jim Meyering 614723b9c1 *** empty log message *** 2000-08-15 13:08:31 +00:00
Jim Meyering 849d512ee9 *** empty log message *** 2000-08-15 13:08:06 +00:00
Jim Meyering c4e4ba9607 *** empty log message *** 2000-08-15 13:07:40 +00:00
Jim Meyering 5f52473b9c *** empty log message *** 2000-08-15 13:05:21 +00:00
Jim Meyering f0a4b95c58 (count_entry): Remember the current directory also for `.'
and `..'.  Reported by Stephen Smoogen, based on a patch from H.J. Lu.
2000-08-15 13:05:03 +00:00
Jim Meyering d5d043c57a *** empty log message *** 2000-08-14 21:42:45 +00:00
Jim Meyering 5f14914c49 remove incorrect FIXME comment. 2000-08-14 21:40:30 +00:00
Jim Meyering 8c446739e7 *** empty log message *** 2000-08-14 09:58:58 +00:00
Jim Meyering 0f8dd3a954 (copy_reg): Move declaration of local, `n_read', into
the scope where it's used.
(copy_internal): In calling copy_reg, pass not the raw `src_mode',
but the possibly-umask-relative mode, `get_dest_mode (x, src_mode)'.
2000-08-14 09:58:25 +00:00
Jim Meyering d927d60b36 (copy_reg): Add comment. 2000-08-13 13:13:25 +00:00
Jim Meyering bed2ded78f *** empty log message *** 2000-08-13 13:05:16 +00:00
Jim Meyering 406f1dcb0f *** empty log message *** 2000-08-13 13:04:52 +00:00
Jim Meyering fc0b4f7672 *** empty log message *** 2000-08-13 13:04:27 +00:00
Jim Meyering 262dbfe2f6 *** empty log message *** 2000-08-13 13:03:41 +00:00
Jim Meyering 27289e8b53 *** empty log message *** 2000-08-13 13:03:13 +00:00
Jim Meyering 8656b00f6d (get_dest_mode): Rename from new_nondir_mode.
Honor the umask for `cp', but not for `mv' or `cp -p'.
(copy_reg): New 4th parameter, dst_mode.  Pass it as 3rd arg. to open.
(copy_internal): Change type of locals `src_mode' and `src_type' from
int to mode_t.
Remove unnecessary local `fix_mode'.
Combine two if-stmts into one.
Pass `src_mode' as 4th arg to copy_reg.
If we've just created a new regular file, return early, skipping the
chmod step.  copy_reg now sets permissions of such files upon creation.
Use get_dest_mode, so there's just one chmod call here.
2000-08-13 13:03:07 +00:00
Jim Meyering ce9d58029c Use jm_FUNC_UNLINK_BUSY_TEXT. 2000-08-12 13:27:29 +00:00
Jim Meyering c187c5884b *** empty log message *** 2000-08-12 13:25:33 +00:00
Jim Meyering ae8efa7087 . 2000-08-12 13:24:44 +00:00
Jim Meyering 13a7e4caf8 (TESTS): Add perm. 2000-08-12 13:24:31 +00:00
Jim Meyering 00874a5dad *** empty log message *** 2000-08-12 13:23:18 +00:00
Jim Meyering 52f1830329 Remove test for the VERSION_CONTROL and/or
SIMPLE_BACKUP_SUFFIX envvars.  Source ../envvar-check instead.
2000-08-12 13:22:59 +00:00
Jim Meyering af77319c56 Remove test for the VERSION_CONTROL and/or
SIMPLE_BACKUP_SUFFIX envvars.  Source ../envvar-check instead.
2000-08-12 13:22:19 +00:00
Jim Meyering 60d7a8e772 Remove test for the VERSION_CONTROL and/or
SIMPLE_BACKUP_SUFFIX envvars.  Source ../envvar-check instead.
2000-08-12 13:21:47 +00:00
Jim Meyering e37768067a Remove test for the VERSION_CONTROL and/or
SIMPLE_BACKUP_SUFFIX envvars.  Source ../envvar-check instead.
2000-08-12 13:21:13 +00:00
Jim Meyering 47e19fb368 *** empty log message *** 2000-08-12 13:19:27 +00:00
Jim Meyering f2893678eb *** empty log message *** 2000-08-12 07:24:27 +00:00
Jim Meyering 1a27d41352 . 2000-08-12 06:17:33 +00:00
Jim Meyering 9099ba78e2 *** empty log message *** 2000-08-12 05:50:21 +00:00
Jim Meyering 017ee79337 *** empty log message *** 2000-08-12 05:16:40 +00:00
Jim Meyering 44d3e01da9 tweak the `whether...' message 2000-08-12 04:59:31 +00:00
Jim Meyering 52d20e4420 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
From J. David Anglin.
2000-08-12 04:57:18 +00:00
Jim Meyering 04d18f430c *** empty log message *** 2000-08-11 20:59:57 +00:00
Jim Meyering c2177b12b3 Portable shell scripts should specify global options before key fields.
Move global LC_CTYPE remark to each sort option that depends on LC_CTYPE.

sort -g depends on LC_NUMERIC.

Add @vindex where it's missing.

"radix character" -> "decimal-point character", to match Standard C
terminology, which is easier for most people to follow.

"comm" does not consider trailing newlines to be significant.
2000-08-11 20:59:49 +00:00
Jim Meyering 7c032c04b9 *** empty log message *** 2000-08-11 09:20:36 +00:00
Jim Meyering 19d6aed760 Add support for multi-byte locales.
(iswprint, mbrtowc, wcwidth): Provide default definitions.
(total_bytes): New variable.
(print_bytes): New variable.
(longopts): Change abbreviation for --chars from 'c' to 'm'.
(usage): Update.
(write_counts): Add `bytes' argument.
(wc): New variables `bytes', `count_bytes', `count_chars',
`count_complicated'. The old code determines `bytes', not `chars'.
New case for MB_CUR_MAX > 1. A non-printable non-space character does
not increment the line position or start a word. Update `total_bytes'.
(main): Initialize `print_bytes' and `total_bytes' to 0. Accept 'm'
option. Pass `total_bytes' to write_counts.
2000-08-11 09:20:31 +00:00
Jim Meyering c14f06f708 *** empty log message *** 2000-08-11 09:13:00 +00:00
Jim Meyering 5018ccfb7e (usage): Describe -d and -i in a locale-independent way. 2000-08-11 09:12:47 +00:00
Jim Meyering d0c8664700 (usage): Don't describe System V syntax, as it doesn't always work. 2000-08-11 09:12:05 +00:00
Jim Meyering 2ed0078725 Recommend against the System V syntax
for tr ranges, and don't use it in examples.  Use POSIX
classes rather than ranges, for portability.
2000-08-11 09:11:20 +00:00
Jim Meyering f64320db7b (wc invocation): Update accordingly. 2000-08-11 09:10:22 +00:00
Jim Meyering f253241fa6 *** empty log message *** 2000-08-08 10:53:28 +00:00
Jim Meyering 129ede91ad (movefile): Invoke xalloc_die instead of printing our own message. 2000-08-08 10:53:23 +00:00