Jim Meyering
e60b747ade
(tail_lines, tail_bytes) [O_BINARY]: Use binary I/O when appropriate.
1999-01-01 22:48:03 +00:00
Jim Meyering
f3ade72018
(wc): Use binary mode for input.
1999-01-01 22:42:36 +00:00
Jim Meyering
59998135d0
(unexpand): Use binary I/O where appropriate.
1999-01-01 22:41:58 +00:00
Jim Meyering
87f9e231c3
(main) [O_BINARY]: Use binary I/O when appropriate.
1999-01-01 22:40:48 +00:00
Jim Meyering
8e7da4a47c
(skip, read_char, read_block) [O_BINARY]: Switch input
...
stream to binary mode.
1999-01-01 22:33:15 +00:00
Jim Meyering
f54c8f6d80
(OPENOPTS) [O_BINARY]: Use binary I/O when non-zero argument.
...
(md5_file) [O_BINARY]: Switch redirected stdin to binary mode.
(main) [O_BINARY]: Use binary reads by default on those systems
which care about the difference.
1999-01-01 22:29:32 +00:00
Jim Meyering
9eedfd2482
(head_bytes, head_lines) [O_BINARY]: Use binary I/O.
1999-01-01 22:28:40 +00:00
Jim Meyering
a498f54f37
(expand): Use binary I/O where appropriate.
1999-01-01 22:27:36 +00:00
Jim Meyering
4394c38352
(cksum) [O_BINARY]: Read redirected stdin in binary mode.
1999-01-01 22:22:02 +00:00
Jim Meyering
7914fb4069
(usage) [O_BINARY]: Describe -B,--binary option.
...
(main) [O_BINARY]: binary_files, binary_output, file_open_mode:
new variables. Add --binary to long_options[]. Switch stdin and
stdout to binary mode unless file contents are not important
anyway. Open files in binary mode when required.
1999-01-01 22:20:23 +00:00
Jim Meyering
3972420f3b
(parse_options): Use XARGCASEMATCH in place of argmatch.
1999-01-01 21:47:08 +00:00
Jim Meyering
b5c28b7097
Rename globals N and R so they don't shadow locals.
...
(tsort): Rename from `sort'.
1999-01-01 19:29:31 +00:00
Jim Meyering
06adce5358
remove trailing blanks
1999-01-01 19:05:47 +00:00
Jim Meyering
d9ce52992c
from Mark Kettenis
1999-01-01 19:05:05 +00:00
Jim Meyering
91dc8874b0
(main): Use XARGCASEMATCH in place of argmatch & co.
1998-12-31 21:59:42 +00:00
Jim Meyering
58d6acdfd3
(indicator_style_types): New variable.
...
(format_types): Rename from `formats'.
(color_args): Remove unnecessary `no' string.
(color_types): Remove corresponding `color_never' entry.
(main): Use ARGMATCH_TO_ARGUMENT.
(decode_switches): Use ARGCASEMATCH instead of argmatch code
in each of several cases.
From Akim Demaille.
1998-12-31 21:49:36 +00:00
Jim Meyering
431652a886
(main): Use XARGCASEMATCH in place of argmatch & co.
1998-12-31 21:41:04 +00:00
Jim Meyering
e68c81a48f
(copy_internal): Remove errnoeous `%s: ' prefix
...
from format string. From Michiel Bacchiani.
1998-12-18 14:22:50 +00:00
Jim Meyering
a3e473c522
(UID_T_MAX, GID_T_MAX): Define them here instead.
1998-12-18 14:09:29 +00:00
Jim Meyering
6408b52640
(UID_T_MAX, GID_T_MAX): Remove definitions.
1998-12-18 14:09:19 +00:00
Jim Meyering
e28821d5f8
(MAXGID): Define.
...
Use gid_t (not int) as the type for `group' variables.
(parse_group): Use MAXGID, not INT_MAX.
1998-12-18 14:07:58 +00:00
Jim Meyering
621691b296
New options for tail: --follow=name, --follow=descriptor, --allow-missing
...
(Follow_mode): New enum.
(n_live_files): New function.
(tail_forever): Avoid starvation with --follow=name and a
continually-growing unlinked or renamed file.
1998-12-17 13:56:25 +00:00
Jim Meyering
7dfd5ca1cd
add comment about opening exclusively
1998-12-13 19:26:35 +00:00
Jim Meyering
9507d3559a
In order to distinguish col(umn|or):
...
(init_column_info): Renamed from init_col_info.
(struct column_info): Renamed from struct col_info.
(struct color_ext_type): Renamed from struct col_ext_type.
From Akim Demaille.
1998-12-12 06:20:42 +00:00
Jim Meyering
876d24a3ed
* src/ls.c: Group DIRED's code together.
...
(full_time, inhibit_group, col_ext_type): Declare static.
(dired_dump_obstack): Apply sizeof to variable, instead of its type.
(parse_ls_color): Rename ext2 as e2. Move into the block where it is used.
From Akim Demaille.
1998-12-12 06:11:24 +00:00
Jim Meyering
a17cdb1173
(main): Arrange to exit unsuccessfully when stime fails.
...
From Andreas Schwab.
1998-12-11 13:37:52 +00:00
Jim Meyering
52dedbfebb
Use dir_name, not dirname. Include dirname.h.
1998-12-07 06:20:50 +00:00
Jim Meyering
7273e22923
declare base_name
1998-12-07 04:35:20 +00:00
Jim Meyering
6207f6f804
Fix `ls -R .' formatting bug that broke mktexlsr.
...
Include path-concat.h.
(basename_is_dot_or_dotdot): New function, derived from
is_not_dot_or_dotdot.
(is_not_dot_or_dotdot): Remove function.
(extract_dirs_from_files): Use `!basename_is_dot_or_dotdot'
instead of is_not_dot_or_dotdot and use path_concat instead of attach.
1998-12-06 23:08:55 +00:00
Jim Meyering
1e422ea7ec
(DOT_OR_DOTDOT): New definition (moved here from remove.c.).
1998-11-30 03:01:24 +00:00
Jim Meyering
9d7c18290e
(DOT_OR_DOTDOT): Move definition from this file...
1998-11-30 03:00:51 +00:00
Jim Meyering
90dbea92c4
(dd_copy): Rename function from `copy'.
1998-11-30 02:58:21 +00:00
Jim Meyering
d9878753d1
(do_copy): Rename local: s/unused/copy_into_self/
1998-11-30 02:57:43 +00:00
Jim Meyering
4dbf57ed78
(do_move): Don't arrange to remove DEST in the copied-into-self case.
1998-11-30 02:56:05 +00:00
Jim Meyering
32df3704e4
(copy_internal): Remove earlier (but less effective)
...
test for move/copy-into-self.
Instead, deduce the move-into-self condition from errno==EINVAL
after a failed rename.
1998-11-30 02:10:13 +00:00
Jim Meyering
75d5ed8b58
(movefile): Don't free new_dest.
...
Bob McCracken reported that mv couldn't handle certain combinations
of hard linked source files.
1998-11-30 02:01:18 +00:00
Jim Meyering
920680fe4f
[HAVE_LSTAT_EMPTY_STRING_BUG]: Define lstat to rpl_lstat and declare the latter.
1998-11-08 03:38:06 +00:00
Jim Meyering
9e630b86cb
(remove_cwd_entries): Don't apply CLOSEDIR to a NULL
...
pointer. (provoke with `mkdir -m 0100 x; rm -rf x')
Upon CLOSEDIR failure, set `status' to RM_ERROR, not RM_OK.
(remove_dir): Return `status', rather than always RM_OK.
1998-10-25 13:58:50 +00:00
Jim Meyering
65b1a6ec82
(usage): Add mention of --version and --help.
1998-10-23 02:08:35 +00:00
Jim Meyering
8670ecb6cb
(long_options): Add entry for --suffix=SUFFIX option.
1998-10-05 12:23:21 +00:00
Jim Meyering
701e23d1e4
(split_3): Rename local variable, to `escaped_filename'.
...
(main): Output the leading backslash not just when there's a newline
in the file name, but also when there's a backslash.
1998-10-04 03:05:37 +00:00
Jim Meyering
2ebff08169
(main): Update to use new version of posixtime.
1998-10-03 17:18:52 +00:00
Jim Meyering
b7e1eadbf8
(copy_internal): Do honor `n' reply in move-mode.
...
Otherwise, `touch a b; echo n|mv -i a b' would remove b.
From Bernd Leibing.
1998-09-28 16:15:00 +00:00
Jim Meyering
3e99e73234
(main): Decrement optind when we find an `option' that
...
looks like -N. Reported by Clark Morgan.
1998-09-28 03:35:51 +00:00
Jim Meyering
80499598c1
(copy_internal): Don't preserve hard-linked directories
...
to avoid damaging the destination filesystem when copying from a
Netapp snapshot directory. With code from Kjetil Torgrim Hollstein
and Paul Eggert.
1998-09-27 02:57:29 +00:00
Jim Meyering
3f9e8072e8
factor.c
1998-09-26 19:12:16 +00:00
Jim Meyering
2b8279f893
(install_file_to_path) [-D]: Create any leading
...
directories with permissions of 0755.
1998-09-20 13:44:12 +00:00
Jim Meyering
ef679d9871
(install_file_to_path): Copy the file after creating any leading directories.
...
(main) [case 'v']: Set `x.verbose' to 1, not 0.
1998-09-20 02:17:26 +00:00
Jim Meyering
24a8bf2d3e
update bug-reporting address
1998-09-19 17:32:35 +00:00
Jim Meyering
ef67832eae
(main): Revamp option processing, again.
...
stty couldn't parse some of its options.
1998-09-19 17:30:17 +00:00