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

402 Commits

Author SHA1 Message Date
Paul Eggert 218fa5c61b Add/fix copyright notices and adjust to latest GNU FDL. 2006-08-17 19:58:17 +00:00
Jim Meyering 734afd5f62 *** empty log message *** 2006-08-16 09:55:48 +00:00
Paul Eggert 9e2b97bf35 * NEWS: Mention that df exits with nonzero status if it generates
no output.  This change was in 6.0 but inadvertently unmentioned.
* doc/coreutils.texi (df invocation): df exits nonzero if it outpus
nothing.
* src/df.c (file_systems_processed): Renamed from n_valid_args, and now
a boolean.
(show_dev): Don't set it until we actually output something.
Print the header if this is the first output.
(main): Don't print a header, as that is now show_dev's job.
* tests/misc/Makefile.am (TESTS): Add df.
* tests/misc/df: New file.
2006-08-15 23:41:24 +00:00
Jim Meyering d8139747b1 * NEWS: Add a line for 6.1-cvs.
* configure.ac (AC_INIT): Bump to 6.1 and add "-cvs" suffix.
2006-08-15 17:00:00 +00:00
Jim Meyering 3a246cc314 * Version 6.0 [unstable].
* NEWS: Record the 6.0 release date.
* configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
2006-08-15 11:12:07 +00:00
Paul Eggert 6767712f7e Add shuf. Mention new --random-source option for shred and sort.
Move "sort +1 -2" notice to the appropriate section, and clarify its
role with respect to POSIXLY_CORRECT.
2006-08-08 22:10:39 +00:00
Paul Eggert 6eb119a91e chmod now preserves setuid and setgid bits on directories
if you use a numeric mode with them clear, e.g., "chmod 755 DIR".
2006-07-28 07:27:56 +00:00
Paul Eggert b7f9a7ed05 Clarify the "chmod 0500" news, and correct the vague
statements about compatibility with BSD.
2006-07-25 18:38:58 +00:00
Jim Meyering 2c5f6e6e2c mention yesterday's other ls bugfix 2006-07-21 08:58:00 +00:00
Jim Meyering 9e0a095be6 Fix another bug: ls --indicator-style=file-type would call
stat for a symlink, even though it wasn't always needed.
In some cases, that unnecessary stat would cause ls to fail.
* src/ls.c (gobble_file): Don't treat symlinks specially (in
requiring a stat syscall).  Remove the offending exclusion.
* NEWS: Mention the fix.
* tests/ls/stat-dtype: New file/test, for the above fix.
Also exercises the new df feature, below.
2006-07-21 08:49:24 +00:00
Paul Eggert 999eeed90f chmod, install, and mkdir now leave setgid and setuid bits
of directories alone unless you specify them explicitly.
install and mkdir now implement X correctly.
install now creates parent directories with mode 755, without
changing their owner or group.
2006-07-17 03:02:45 +00:00
Jim Meyering 1ac491f062 * NEWS: Mention that mv can now remove an empty destination directory,
and give an example.  Prompted by a report from Florent Bayle.
2006-07-07 06:38:36 +00:00
Paul Eggert 31acf81fa0 With no operand, 'tail -f' now silently ignores the '-f'
only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
2006-07-01 23:53:05 +00:00
Paul Eggert 69f1a97138 seq defaults to a minimal fixed point format that does not lose
information if seq's operands are all fixed point decimal numbers.
You no longer need the `-f%.f' in `seq -f%.f 1048575 1024 1050623',
for example, since the default format now has the same effect.

seq now lets you use %a, %A, %E, %F, and %G formats.

seq now uses long double internally rather than double.
2006-07-01 00:11:23 +00:00
Paul Eggert 3869e29196 Support obsolete usages like "sort +1 -2" even when conforming to
POSIX 1003.1-2001.
2006-06-28 23:49:58 +00:00
Jim Meyering 78b166d1b1 * NEWS: rm no longer fails to remove an empty, unreadable directory
* src/remove.c (remove_cwd_entries): If we can't open a directory,
and the failure is not being ignored, try to remove the directory
with rmdir (aka unlinkat-with-AT_REMOVEDIR), in case it's empty.
Problem report and test case from Paul Eggert in
<http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7425>.
* tests/rm/empty-inacc: New test, for the above.
2006-06-26 13:02:01 +00:00
Jim Meyering cc70571401 * NEWS: wc accepts a new option --files0-from=FILE, where FILE
contains a list of NUL-separated file names.

* src/wc.c: Include "readtokens.h".
(usage): Describe the new option, and adjust the `Usage':
with this option, no FILE may be specified on the command line.
(main): Handle the new option.
* tests/misc/wc-files0: New tests, for the above.
* tests/misc/wc-files0-from: Likewise.
* tests/misc/Makefile.am (TESTS): Add wc-files0.
2006-06-25 18:26:09 +00:00
Jim Meyering d9f0cce0f4 Mention the AIX-strndup-bug vs. dircolors workaround. 2006-06-10 09:41:39 +00:00
Jim Meyering 790892db65 Ensure that cat works with any of the options, -A -v -e -E -T,
when applied to files in /proc and /sys, even when the FIONREAD
ioctl produces nonsensical results.  Before this change, cat would
produce no output (or truncated output), for some linux kernels.

* src/cat.c (write_pending): New function, factored out of cat.
(cat): Also interpret a negative ioctl/FIONREAD count as indicating
that there are bytes to read.  Some versions of linux-2.6.16 do that.
Write any pending output before returning.
Reported by Dan Jacobson in <http://bugs.debian.org/370583>.
* NEWS: Mention this bug fix.
* tests/misc/cat-proc: New file.  Test for the above.
* tests/misc/Makefile.am (TESTS): Add cat-proc.
2006-06-08 20:13:37 +00:00
Paul Eggert 0038f24b9a The 'expr' command now detects and reports integer overflow. 2006-06-07 05:52:07 +00:00
Jim Meyering 6293c4ae50 `cp --link --no-dereference' now works also on systems where the
link system call cannot create a hard link to a symbolic link.
2006-06-03 09:04:05 +00:00
Jim Meyering 17fc4cd8ab *** empty log message *** 2006-05-27 15:13:35 +00:00
Jim Meyering df91a82135 chgrp now supports --preserve-root, --no-preserve-root 2006-05-27 15:01:36 +00:00
Paul Eggert 32cea0d8ae Remove mention of --seed. 2006-05-25 16:48:05 +00:00
Jim Meyering d523a83be5 *** empty log message *** 2006-05-21 22:04:34 +00:00
Jim Meyering 197f7d766e mention cp -p vs. no-/proc fix 2006-05-16 17:27:04 +00:00
Jim Meyering ccafe4292f Mention that:
mv -T DIR EMPTY_DIR no longer fails unconditionally
2006-05-11 08:57:45 +00:00
Jim Meyering f79fbe2212 *** empty log message *** 2006-05-11 07:33:10 +00:00
Jim Meyering f7e3e90916 mention the df fix of 2006-01-24 2006-05-07 15:53:25 +00:00
Jim Meyering afbf453a82 *** empty log message *** 2006-05-06 21:09:35 +00:00
Jim Meyering e0beb8aab5 mention the shred-segfault fix 2006-05-06 16:03:20 +00:00
Jim Meyering 23e6a454b4 remove stray stat-related line 2006-05-06 16:01:39 +00:00
Jim Meyering aac1ddf240 mention pwd fix 2006-05-04 10:00:40 +00:00
Jim Meyering db6a912f8c [New features]: Mention ls's new option, --group-directories-first 2006-04-23 21:38:32 +00:00
Paul Eggert dfe1ede00d csplit, nl, expr now conform to POSIX better, and are
more-compatible with traditional Unix, with respect to regular
expressions.
2006-04-12 07:49:34 +00:00
Jim Meyering 5378e090da deprecate ptx's --copyright (-C) option 2006-03-28 09:46:38 +00:00
Jim Meyering ba3419a626 Improvements to dirname/basename handling on platforms like
cygwin with distinct // and with drive letters.
2006-03-26 11:59:31 +00:00
Paul Eggert 9f6b2d2548 nohup diagnostics are now more precise, and nohup now
redirects stderr to nohup.out if stdout is closed and stderr is a tty.
2006-03-23 23:34:22 +00:00
Jim Meyering 6754d7a74f *** empty log message *** 2006-03-10 21:44:30 +00:00
Jim Meyering b72303e7e6 mention today's rm -r fix. 2006-03-10 21:31:53 +00:00
Paul Eggert e190228997 Document dd's new 'directory' and 'nolinks' flags. 2006-03-08 18:57:21 +00:00
Jim Meyering f3465b0ec6 mention new program: base64 2006-02-27 10:47:56 +00:00
Jim Meyering f97b02c197 New option for rm: --interactive=once (-I).
Document it, along with change to rm --interactive.
2006-02-20 12:50:38 +00:00
Jim Meyering 8bb7d21a7c Bug fix:
rm -r must remove an empty directory, even if it is inaccessible.
2006-02-11 19:25:26 +00:00
Jim Meyering 82959f79fe Mention the `cp -RL' bug fix. 2006-02-06 12:42:13 +00:00
Jim Meyering d99e1c3342 tail -f once again works on a file with the append-only
attribute (affects at least Linux ext2, ext3, xfs file systems)
2006-01-24 10:36:28 +00:00
Jim Meyering af1885b91f Mention fts-related improvements and bug fixes. 2006-01-21 11:16:43 +00:00
Paul Eggert 70efb5ac20 Document that mkfifo and mknod -m no longer set special bits. 2006-01-02 07:28:08 +00:00
Jim Meyering 5124a296ab stat: revert behavior of --format=FMT (-c)
stat: add new option: --printf=FMT
2005-12-15 12:24:54 +00:00
Jim Meyering 2a390dea1f *** empty log message *** 2005-12-15 08:37:14 +00:00