Commit Graph

14220 Commits

Author SHA1 Message Date
Jim Meyering 229031ed3f (bin_PROGRAMS): Add readlink. 2003-01-09 20:36:37 +00:00
Jim Meyering 2ae02ab5b9 New program, by Dmitry V. Levin. 2003-01-09 20:35:13 +00:00
Jim Meyering 8ee5d881b1 (out-delim1, ..., out-delim5): Test new functionality. 2003-01-09 20:30:40 +00:00
Jim Meyering 322ee6e302 When selecting ranges of byte offsets (as opposed to ranges of fields)
and when --output-delimiter=STRING is specified, output STRING between
ranges of selected bytes.

(RANGE_START_SENTINEL): Define.
(output_delimiter_specified): New global.
(print_kth): Add parameter.  Adjust all callers.
(set_fields): Mark each range-start index with RANGE_START_SENTINEL.
(cut_bytes): When requested, output STRING between ranges of
selected bytes.
(main): Make a diagnostic a little clearer.
Based on a patch from Jan Nieuwenhuizen.
2003-01-09 20:16:58 +00:00
Jim Meyering ba5be82b7e *** empty log message *** 2003-01-09 20:14:08 +00:00
Jim Meyering a215ab54d3 *** empty log message *** 2003-01-09 19:30:28 +00:00
Jim Meyering e66ab953ef (set_fields): Make code agree with comment:
Don't merge abutting ranges like 4- and 2-3.  This makes no
difference currently, but is required to support an upcoming change.
2003-01-09 19:30:22 +00:00
Jim Meyering bc49481933 *** empty log message *** 2003-01-08 17:36:51 +00:00
Jim Meyering 8ca0769584 Undefine and define-away `const' after inclusion
of errno.h, not before.  Suggestion from Bruno Haible.
2003-01-08 17:36:35 +00:00
Jim Meyering 0f19450208 *** empty log message *** 2003-01-07 22:40:34 +00:00
Jim Meyering 0f076ebc12 *** empty log message *** 2003-01-07 17:12:16 +00:00
Jim Meyering 7d1c764098 (set_fields): Fix typo in comment. 2003-01-07 17:12:11 +00:00
Jim Meyering d31fd7a77e tweak comment 2003-01-07 16:36:45 +00:00
Jim Meyering 1ef6e79882 add a comment 2003-01-07 16:06:56 +00:00
Jim Meyering d14b4f476c *** empty log message *** 2003-01-07 15:59:48 +00:00
Jim Meyering 06ed252866 *** empty log message *** 2003-01-07 15:54:53 +00:00
Jim Meyering 819147ade4 (TESTS): Add not-owner. 2003-01-07 15:36:17 +00:00
Jim Meyering 6068858986 *** empty log message *** 2003-01-07 15:34:51 +00:00
Jim Meyering 6580a55aeb Remove the test for non-owner diagnostic.
Now, this tests only the nonexistent-directory diagnostic.
2003-01-07 15:34:34 +00:00
Jim Meyering 8586d4652e New test, mostly extracted from fail-diag. 2003-01-07 15:34:20 +00:00
Jim Meyering 0d07d1b2b7 *** empty log message *** 2003-01-07 14:44:54 +00:00
Jim Meyering 84cdbe6529 Fix typo: s/ld/ls/. 2003-01-07 14:44:45 +00:00
Jim Meyering 72d00a1c57 . 2003-01-07 14:12:30 +00:00
Jim Meyering 6a4d25740c tweak comment 2003-01-07 14:09:37 +00:00
Jim Meyering fbb3b7b80c *** empty log message *** 2003-01-07 14:03:21 +00:00
Jim Meyering e76d578bad Rework so that it may serve to define full_read, too. 2003-01-07 14:03:15 +00:00
Jim Meyering 0f0a65766e Simply #define FULL_READ and include full-write.c. 2003-01-07 14:03:05 +00:00
Jim Meyering 9d89ba4161 2002-12-10 Paul Eggert <eggert@twinsun.com>
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.

(FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
defined (e.g., a pure POSIX system).
(EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
2003-01-06 13:17:48 +00:00
Jim Meyering 783186bced 2002-12-10 Paul Eggert <eggert@twinsun.com>
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.

(EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
Choose values that are less likely to collide with system fnmatch
options.
2003-01-06 13:17:27 +00:00
Jim Meyering cc334674f6 (libfetish_a_SOURCES): Add full-read.c and full-read.h. 2003-01-06 13:14:55 +00:00
Jim Meyering 685ac06eef . 2003-01-06 13:08:59 +00:00
Jim Meyering dd02096234 Include full_read.h.
(get_fs_usage): Use full_read instead of safe_read.
2003-01-06 13:08:19 +00:00
Jim Meyering a66b8da8d5 *** empty log message *** 2003-01-06 13:05:24 +00:00
Jim Meyering b9ba08e368 (strdup): Remove unused declaration. 2003-01-06 13:04:50 +00:00
Jim Meyering a7bed0741a (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE. 2003-01-06 13:02:33 +00:00
Jim Meyering d509325269 (utime_null): No need to call ftruncate if the file was
nonempty.  Patch by Bruno Haible.
(utime_null): Use SAFE_READ_ERROR.
2003-01-06 12:58:35 +00:00
Jim Meyering e7ad638593 *** empty log message *** 2003-01-04 10:51:46 +00:00
Jim Meyering 7de3755878 Update copyright date. 2003-01-04 10:51:31 +00:00
Jim Meyering 79ea5a059c (TESTS): Add no-deref. 2003-01-04 10:46:56 +00:00
Jim Meyering 2076d0231d . 2003-01-04 10:45:42 +00:00
Jim Meyering dc90551359 *** empty log message *** 2003-01-04 10:36:24 +00:00
Jim Meyering 7a1c2309c2 *** empty log message *** 2003-01-04 10:35:13 +00:00
Jim Meyering a2b9cb05b7 Remove use of PARAMS. 2003-01-04 10:34:59 +00:00
Jim Meyering a6b5021004 Remove use of PARAMS. 2003-01-04 10:33:01 +00:00
Jim Meyering 6df04c9288 Remove use of PARAMS. 2003-01-04 10:32:21 +00:00
Jim Meyering 83593d5f3a *** empty log message *** 2003-01-04 10:08:07 +00:00
Jim Meyering 8b6b22bcef rm could be tricked into mistakenly reporting a cycle.
* src/remove.c: [cycle_check_state]: New global.
(remove_cwd_entries): Adapt to new semantics of cycle_check.
(rm): Call cycle_check_init and cycle_check_free for each file.

When rm detects a cycle, don't abort the entire command,
but rather just the affected command line argument.
* src/remove.c: Include <setjmp.h>
(struct dirstack_state) [current_arg_jumpbuf]: New member.
(remove_cwd_entries): Call longjmp if we detect a cycle.
(rm): Call setjmp here.

* src/remove.c (cycle_check, is_power_of_two): Remove functions.
Instead, include cycle-check.h and use it.
2003-01-04 10:07:44 +00:00
Jim Meyering e2b894c771 (struct dev_ino): Remove declaration. 2003-01-04 09:53:20 +00:00
Jim Meyering a3e6d3aa63 Don't include trailing /. in diagnostics about directories.
(full_filename_): When FILENAME is just `.'
and there is a nonempty directory-name part, don't append `/.'.
2003-01-04 09:45:54 +00:00
Jim Meyering b09da5c9d0 (remove_cwd_entries): Fix typos in comment. 2003-01-04 09:42:53 +00:00