Jim Meyering
df96ded8ae
* tests/misc/cat-proc: Try to avoid any spurious numeric
...
differences in frequently-changing /proc/cpuinfo.
Reported by Nelson Beebe.
2006-06-27 18:43: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
0b1dce2485
Fix typo (s/neq/ne/) in previous change.
2006-06-18 17:08:50 +00:00
Jim Meyering
89c21e7043
make error output a little clearer
2006-06-18 06:31:25 +00:00
Jim Meyering
ef8e124bb2
* tests/rm/inaccessible: Skip this test on systems without openat support.
...
Reported by Bob Proulx.
2006-06-17 17:46:33 +00:00
Jim Meyering
a49a6bfe1b
.
2006-06-16 09:57:36 +00:00
Jim Meyering
3afe316b52
add these two files (a and b) so that I can remove them -- in the eyes of cvsps
2006-06-16 09:57:11 +00:00
Jim Meyering
a2b4ccc56a
remove the files once and for all, so that tools like cvsps (and even 'cvs update') don't think they're still around
2006-06-16 09:54:29 +00:00
Paul Eggert
585d681783
Improve permission checks to handle
...
running mkdir test in set-gid directories.
2006-06-15 17:35:00 +00:00
Jim Meyering
e48234f842
tests/du/basic: Revamp not to hard-code file system block sizes.
2006-06-14 08:45:33 +00:00
Jim Meyering
61691e8f40
tests/du/Makefile.am (TESTS_ENVIRONMENT): Pass $(PERL), for the files0-from test.
2006-06-12 20:35:55 +00:00
Jim Meyering
ba2948b764
Setting TIME_STYLE=long-iso in the environment would make the
...
cp/same-file test fail.
* tests/envvar-check (vars): Add TIME_STYLE to the list.
* tests/cp/same-file: Revert last change.
Source the envvar-check script, to ensure that TIME_STYLE
settings don't affect these tests.
2006-06-11 08:12:37 +00:00
Paul Eggert
13d0cd669e
* tests/cp/same-file: Execute 'ls' in the C locale, so that it
...
uses POSIX time stamp formats. Problem reported by John Nixon in
<http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00062.html >.
2006-06-11 07:59:16 +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
856e93df76
Rename file to avoid bugs with VPATH builds and Solaris 'make'.
2006-06-05 20:05:00 +00:00
Paul Eggert
8818e69748
Don't assign to PROG; no longer needed
...
now that Makefile.am sets PROG to the basename.
2006-06-05 20:03:52 +00:00
Paul Eggert
0d82817eb4
(PROG): Take the basename of $$tst,
...
in case Solaris make has prepended the directory.
(TESTS): Adjust to test script renamings.
2006-06-05 20:03:27 +00:00
Jim Meyering
09024704ab
Test for this:
...
Make `cp --link --no-dereference' work also on systems where the
link system call cannot create a hard link to a symbolic link.
* src/copy.c (copy_internal) [LINK_FOLLOWS_SYMLINKS]: Don't use
the link syscall on a symlink when it would do the wrong thing.
Based on the patch by Aurelien Jarno: <http://bugs.debian.org/329451 >
2006-06-03 09:03:19 +00:00
Jim Meyering
db5756af29
(TESTS): Add link-no-deref.
2006-06-03 09:02:53 +00:00
Paul Eggert
8cf6d1850d
Don't assume that >&- works.
2006-06-01 07:10:34 +00:00
Paul Eggert
42314d3303
Don't assume that >&- works. Add a /dev/full test.
2006-06-01 07:10:15 +00:00
Paul Eggert
5d3b41a84a
Don't assume that \< \> works in sed.
2006-06-01 07:09:51 +00:00
Jim Meyering
84abb198a2
Source lang-default. From Ralf Wildenhues.
2006-05-28 12:11:35 +00:00
Jim Meyering
8542aa6622
AIX 4.3.3 gives a different diagnostic.
...
Recognize it, too. Reported by Ralf Wildenhues, in
http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00192.html
2006-05-28 09:32:54 +00:00
Jim Meyering
9f1c534949
Test two more cases.
2006-05-13 08:41:02 +00:00
Jim Meyering
03b02874a7
.
2006-05-11 08:58:23 +00:00
Jim Meyering
8ebce3d9a5
*** empty log message ***
2006-05-11 08:54:30 +00:00
Jim Meyering
54d36f3dc2
(TESTS): Add no-target-dir.
2006-05-11 08:54:23 +00:00
Jim Meyering
b7c2ae47f0
ensure that mv did what it's supposed to
2006-05-11 08:18:34 +00:00
Jim Meyering
96a2e1be04
.
2006-05-11 07:53:25 +00:00
Jim Meyering
6ccf57e3b9
(TESTS): Add atomic.
2006-05-11 07:51:05 +00:00
Jim Meyering
40b5d67c1f
New file/test for yesterday's fix.
2006-05-11 07:50:55 +00:00
Jim Meyering
029057a361
Avoid harmless `ambiguous redirect' diagnostic.
2006-05-11 07:29:53 +00:00
Jim Meyering
9980147451
.
2006-05-06 15:52:56 +00:00
Jim Meyering
cc86eaf147
Expand to test broken links encountered
...
implicitly, favoring Solaris 9 and OpenBSD 3.4 behavior.
2006-05-06 15:44:19 +00:00
Jim Meyering
b68ddecba7
Expand to test inode from readdir case.
2006-05-06 15:44:01 +00:00
Jim Meyering
1cf31b9cb6
(TESTS): Add stat-vs-dirent.
2006-05-06 15:29:44 +00:00
Jim Meyering
8840dfb071
*** empty log message ***
2006-05-06 15:27:38 +00:00
Jim Meyering
29f7820bba
Work even on case-insensitive file system.
2006-05-06 14:23:31 +00:00
Paul Eggert
dfef85e753
(relative-3): New test, derived from a bug report by John Thomas McDole.
2006-04-25 10:29:10 +00:00
Jim Meyering
332498c318
Add new programs, base64, sha224sum, sha256sum, sha384sum, sha512sum.
2006-04-18 14:59:22 +00:00
Paul Eggert
93305ed5f9
Use \{...\} in test RE, to test that we're conforming to POSIX.
2006-04-12 07:17:26 +00:00
Paul Eggert
661b506c3d
(fail-a): Adjust exit status to match new expr behavior, for status 2 versus 3.
...
(anchor): New test.
(bre1, bre2, bre3, bre4, bre5, bre6, bre7, bre8, bre9, bre10):
(bre11, bre12, bre13, bre14, bre15, bre16, bre17, bre18, bre19, bre20):
(bre21, bre22, bre23, bre24, bre25, bre26, bre27, bre28, bre29, bre30):
(bre31, bre32, bre33, bre34, bre35, bre36, bre37, bre38, bre39, bre40):
(bre41, bre42, bre43, bre44, bre45, bre46, bre47, bre48, bre49, bre50):
(bre51, bre52, bre53, bre54, bre55, bre56, bre57, bre58, bre59, bre60):
(bre61, bre62): New tests.
2006-04-12 07:17:02 +00:00
Paul Eggert
1ff52c6a54
Do not assume that 'sed' can handle long, newline-free input.
...
Evaluate expr once, not $n times.
2006-04-12 07:07:55 +00:00
Paul Eggert
0dfc08bf3a
Solaris 8 sh doesn't understand "if !". Do not assume that 'sed' can
...
handle long, newline-free input.
2006-04-12 07:07:32 +00:00
Jim Meyering
a35fc49153
.
2006-03-26 12:33:28 +00:00
Jim Meyering
fdecd2cfcd
.
2006-03-26 11:56:09 +00:00
Jim Meyering
82142e155d
remove this entire directory
2006-03-26 11:55:38 +00:00
Jim Meyering
06ada66861
remove this entire directory
2006-03-26 11:54:50 +00:00