Paul Eggert
d766c0a42a
(fts_sort): Optimize the common case where all pointers smell the same.
2005-05-09 23:54:26 +00:00
Paul Eggert
a7864df9ba
* fts_.h, fts.c: More C89 portability fixes.
2005-05-09 18:53:54 +00:00
Paul Eggert
3b3a3a9520
(__P): Remove. All uses rewritten to assume C89 or better.
...
(fts_open): Don't cast a function value in a possibly-unsafe way.
(fts_compar): New function.
(fts_sort): Use it.
2005-05-09 18:53:33 +00:00
Paul Eggert
3ed3fb2d81
(FTS): Use correct type for fts_compar member.
...
(FTSENT): New member fts_fts. Remove members fts_ino, fts_dev,
fts_nlink; no longer needed now that fts_statp is always there.
All uses changed to use fts_statp instead.
2005-05-09 18:53:11 +00:00
Jim Meyering
ea345c5774
.
2005-05-08 18:54:26 +00:00
Paul Eggert
cd8fce3088
cp, ln, mv, rm no longer discard white space when intepreting responses.
2005-05-08 16:52:43 +00:00
Jim Meyering
7f26e14e3a
.
2005-05-08 16:52:38 +00:00
Paul Eggert
963e363388
* yesno.c: Include getline.h, not ctype.h.
...
(yesno): Don't remove leading white space; POSIX doesn't allow it.
Use getline to remove arbitrary restriction on response length.
2005-05-08 16:50:57 +00:00
Jim Meyering
3a1abe7485
remove trailing blanks
2005-05-06 21:08:39 +00:00
Paul Eggert
c0fd619103
dd has new iflag= and oflag= flags "binary" and "text".
2005-05-06 17:57:59 +00:00
Paul Eggert
b3f58e2acf
* coreutils.texi (dd invocation): New flags "binary" and "text".
2005-05-06 17:57:45 +00:00
Paul Eggert
db028141f5
(dd invocation): New flags "binary" and "text".
2005-05-06 17:57:35 +00:00
Paul Eggert
026894fd09
(flags, usage): Add support for "binary" and "text".
2005-05-06 17:57:10 +00:00
Paul Eggert
d5f20ebe16
dd has new iflag= and oflag= flags "binary" and "text".
2005-05-06 17:56:49 +00:00
Paul Eggert
f9aa4b0e4b
* getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
...
needless checks.
2005-05-06 00:59:46 +00:00
Paul Eggert
38c0488d28
(gl_GETOPT): Check for Solaris 10 getopt, and avoid needless checks.
2005-05-06 00:59:33 +00:00
Paul Eggert
3cccf50ce3
* makepath.c (make_path): chdir to "//", not "/", if the file name
...
starts with exactly two slashes.
2005-05-05 08:00:03 +00:00
Paul Eggert
280cc68071
(make_path): chdir to "//", not "/", if the file name
...
starts with exactly two slashes.
2005-05-05 07:59:48 +00:00
Paul Eggert
04d5428ad3
Regenerate.
2005-05-04 17:25:26 +00:00
Paul Eggert
441a46319c
(chmod invocation): chmod -w complains if its
...
behavior differs from what chmod a-w would do.
2005-05-04 17:24:49 +00:00
Paul Eggert
918d8e5f31
chmod -w now complains if it differs from chmod a-w.
2005-05-04 17:23:38 +00:00
Paul Eggert
b9abf51d74
chmod -w now complains if it differs from chmod a-w.
2005-05-04 17:23:13 +00:00
Paul Eggert
a68066a0fb
Initial version.
2005-05-04 17:22:54 +00:00
Paul Eggert
5147bacee1
(TESTS): Add umask-x
2005-05-04 17:22:41 +00:00
Paul Eggert
4432ecc7b5
Include quotearg.h.
...
(diagnose_surprises): New var.
(process_file): Diagnose surprises. Simplify the logic a bit,
while we're at it.
(main): Prepare to diagnose surprises. Remove useless code for
'-' option.
2005-05-04 17:22:25 +00:00
Paul Eggert
28bbebfb89
chmod -w now complains if it differs from chmod a-w.
2005-05-04 17:22:08 +00:00
Paul Eggert
6383922a13
ls --indicator-style=directory renamed to ls --indicator-style=slash.
2005-05-02 18:41:53 +00:00
Paul Eggert
967e54a1e1
(ls invocation): ls --indicator-style=directory
...
renamed to ls --indicator-style=slash, to avoid confusion with ls
--directory.
2005-05-02 18:41:12 +00:00
Paul Eggert
77be207a57
(usage): ls --indicator-style=directory renamed to ls
...
--indicator-style=slash, to avoid confusion with ls --directory.
(slash): Renamed from directory_only. All uses changed.
2005-05-02 18:40:47 +00:00
Paul Eggert
9b1fc199cd
ls --indicator-style=directory renamed to ls
...
--indicator-style=slash, to avoid confusion with ls --directory.
2005-05-02 18:40:20 +00:00
Paul Eggert
ecf4669714
Sync from gnulib.
2005-05-02 04:28:20 +00:00
Paul Eggert
e9d60320ab
"chmod +1 foo" is now diagnosed.
2005-05-01 14:33:23 +00:00
Paul Eggert
dfdf88d425
* modechange.h (mode_free): Remove; all callers changed to invoke 'free'.
...
* modechange.c: Likewise. Simplify internals a bit. Prohibit "+0".
2005-05-01 14:28:38 +00:00
Paul Eggert
71a7e54b0d
mode_free -> free
2005-05-01 14:27:51 +00:00
Paul Eggert
394b469369
(mode_free): Remove; all callers changed to invoke 'free'.
2005-05-01 14:27:09 +00:00
Paul Eggert
d4502755f4
(mode_free): Remove; all callers changed to invoke 'free'.
...
xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
(MODE_DONE): New constant.
(struct mode_change): Remove 'next' member.
(make_node_op_equals): New function; like the old one of the
same name, except it allocates an array.
(mode_compile, mode_create_from_ref): Use it.
(mode_compile): Allocate result as an array, not a linked list.
Parse octal string ourself, so that we catch mistakes like "+0".
(mode_adjust): Arg is an array, not a linked list.
2005-05-01 14:26:50 +00:00
Paul Eggert
67a19c8e42
Regenerate.
2005-04-30 00:07:30 +00:00
Paul Eggert
89a64c09ba
Log yesterday's changes.
2005-04-30 00:06:06 +00:00
Paul Eggert
60eebc75c9
Document the last two days' worth of changes.
2005-04-30 00:05:46 +00:00
Paul Eggert
73c0749921
Fix typo in ls POSIX changes.
2005-04-29 23:53:39 +00:00
Paul Eggert
2ae6e04c14
(tv): Rename tests from obs to obs-plus
...
if they use file names starting with +.
(test_vector): Don't set _POSIX2_VERSION if obs but not obs-plus.
2005-04-29 23:51:33 +00:00
Paul Eggert
37b4097c76
(tv): Rename tests from obs to obs-plus
...
if they use file names starting with +.
(test_vector): Don't set _POSIX2_VERSION if obs but not obs-plus.
2005-04-29 23:51:11 +00:00
Paul Eggert
4dad901e78
Fix comment to match new behavior of "sort".
2005-04-29 23:50:52 +00:00
Paul Eggert
87aed84ff4
Don't set _POSIX2_VERSION; no longer needed.
2005-04-29 23:49:47 +00:00
Paul Eggert
8b4811a61b
Don't use 'set -'
2005-04-29 21:49:59 +00:00
Paul Eggert
d62f87f164
Don't use 'set -'.
2005-04-29 21:49:20 +00:00
Paul Eggert
57b38dad6b
Don't use 'set -'. Simplify test construction.
...
Work even if the underyling system attaches ACLs to new dirs.
2005-04-29 21:49:06 +00:00
Paul Eggert
b4dcd32039
Don't use 'set -'. Also, don't set _POSIX2_VERSION.
2005-04-29 21:48:48 +00:00
Paul Eggert
57f4da0a00
Test for new -p behavior. Omit -1 option.
...
The "ls --color" test wasn't being checked; add a check for
"ls --color=auto" instead.
2005-04-29 21:01:29 +00:00
Paul Eggert
483ad6b981
(enum indicator_style): New constant directory_only,
...
for -p.
(indicator_style_args, indicator_style_types): Set it appropriately.
(decode_switches, gobble_file, print_type_indicator):
(length_of_file_name_and_frills):
Implement the change described in NEWS.
(decode_switches): Quote ">", too.
(usage): Update to match the new behavior. Describe ">".
2005-04-29 21:01:04 +00:00