Age | Commit message (Collapse) | Author |
|
Instead, include "xalloc.h".
|
|
|
|
|
|
|
|
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.
|
|
Don't merge abutting ranges like 4- and 2-3. This makes no
difference currently, but is required to support an upcoming change.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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.
|
|
|
|
(full_filename_): When FILENAME is just `.'
and there is a nonempty directory-name part, don't append `/.'.
|
|
|
|
To be used in place of these file-scoped globals ...
(dir_stack, len_stack, Active_dir): Remove globals.
(ds_init, ds_free): New functions.
(full_filename): Define.
(full_filename_): Rename from full_filename.
Begin to make AD_* functions more generic.
(AD_push_initial): Don't set status to RM_OK here.
(AD_push): Likewise.
(AD_INIT_OTHER_MEMBERS): Define.
(remove_dir): Define the `status' member manually after each
call to AD_push or AD_push_initial.
|
|
S_IS* macro definitions sneak into the code.
(check): Depend on check-misc.
|
|
They're already defined in sys2.h.
|
|
|
|
It's already defined in sys2.h.
|
|
|
|
(AUTHORS): I suppose I've written it.
|
|
|
|
from mv: s/missing file arguments/missing file argument/.
With --target-directory=DIR, cp and mv work with a single file argument.
Reported by Karl Berry.
|
|
[struct dev_ino]: Remove declaration.
|
|
|
|
that it makes sense both when the file exists and when it doesn't.
|
|
|
|
|
|
|
|
|
|
Include strftime.h instead.
|
|
This is necessary at least for Irix6.5 when using c89.
Reported by Nelson Beebe.
|
|
Remove now-redundant usage-specifying comment.
|
|
--preserve=mode,ownership.
(decode_preserve_arg): Advance `comma' to
point the character following the comma.
|
|
in case it's already defined.
|
|
Define to rpl_lstat, so that even on systems like Solaris 5.8,
du honors (per POSIX) the trailing slash on an argument referring
to a symlink-to-directory.
|
|
|
|
regular file and --indicator-style=classify (aka -F).
|
|
|
|
|
|
|
|
|
|
since this package no longer panders to K&R compilers.
|
|
That's already done via system.h.
|
|
That's already done via system.h.
|
|
entry on systems with valid dirent.d_type.
(print_dir): Add DT_LNK and DT_REG.
(main): Make --recursive set format_needs_type, not format_needs_stat.
(gobble_file): Remove a FIXME comment, now that this is fixed.
|
|
`ls --color -F symlink-to-dir' to list the files in
`symlink-to-dir/.'. Now, it prints `symlink-to-dir@',
(just like `ls -F symlink-to-dir') but with the addition
of highlighting.
|
|
|