Commit Graph
4423 Commits
Author SHA1 Message Date
Jim Meyering 2b2fb0cf91 *** empty log message *** 1997-12-21 12:11:32 +00:00
Jim Meyering 76d9ec0ad0 increment serial number 1997-12-21 12:11:17 +00:00
Jim Meyering 32068e5812 increment serial number 1997-12-21 12:10:55 +00:00
Jim Meyering 90d217b19a increment serial number 1997-12-21 12:10:26 +00:00
Jim Meyering 726c48d02f Fix reversed types on -1 args to chown.
From Kaveh Ghazi.
1997-12-21 12:10:07 +00:00
Jim Meyering 1af374e6a4 . 1997-12-21 12:06:03 +00:00
Jim Meyering 9ef99e168b *** empty log message *** 1997-12-21 12:05:56 +00:00
Jim Meyering bdcaa361bc Include exclude.h.
(exclude): New static var.
(long_options, usage, main): Add --exclude and --exclude-from or -X.
(count_entry): Skip excluded entries.
1997-12-21 12:05:42 +00:00
Jim Meyering a1003f154f remove FIXME-describe comments 1997-12-21 11:57:17 +00:00
Jim Meyering 3ba71d6de1 add FIXME-describe comments 1997-12-21 11:56:34 +00:00
Jim Meyering ac5fc8ea73 Include exclude.h.
(exclude): New static var.
(long_options, usage, main): Add --exclude and --exclude-from or -X.
(count_entry): Skip excluded entries.
1997-12-21 11:47:27 +00:00
Jim Meyering a3e0b4392c (libfu_a_SOURCES): Add exclude.c.
(noinst_HEADERS): Add exclude.h.
1997-12-21 11:46:49 +00:00
Jim Meyering cbd71d8eea . 1997-12-21 11:43:34 +00:00
Jim Meyering a2c7ebd49c . 1997-12-21 11:24:53 +00:00
Jim Meyering 727298f3f5 Use PARAMS, not __P. 1997-12-21 11:22:51 +00:00
Jim Meyering 27d24b46ad (rpl_chown): Rename from chown.
Undefine chown just after including config.h.
Include sys/stat.h.
Use correct ordering of uid and gid parameters both in function
definition and in call to chown.
With patches from Kaveh Ghazi.
1997-12-21 11:17:20 +00:00
Jim Meyering a2f0f9ac89 s/__P/PARAMS/g 1997-12-16 15:44:00 +00:00
Jim Meyering ece81e9e4a *** empty log message *** 1997-12-16 15:43:01 +00:00
Jim Meyering 70618de21b s/__P/PARAMS/g. 1997-12-16 15:42:48 +00:00
Jim Meyering 589a3c2872 *** empty log message *** 1997-12-16 15:33:33 +00:00
Jim Meyering 03f9f3dbec s/__P/PARAMS/g 1997-12-16 15:32:32 +00:00
Jim Meyering fc22546441 . 1997-12-16 15:16:20 +00:00
Jim Meyering 08b3d2975e *** empty log message *** 1997-12-16 15:13:06 +00:00
Jim Meyering 5d764734f7 tweak indentation 1997-12-16 15:11:23 +00:00
Jim Meyering 36665a7464 (struct bin_str): Make len int, not unsigned, to avoid
bogus comparison < 0.
(quote_filename): Add forward decl.
(decode_switches): -b, -e, -N, -Q are now mutually exclusive.
(print_dir): Quote directory name as per quoting options.
(print_long_format): Don't count color changes as part of file name.
(quote_filename): Revamp interface: now accepts stream to output to
and filename, and returns length of quoted filename.
This removes duplicated code and should make errors less likely.
Also, no longer mallocs storage.  All callers changed.
Don't quote ' ' if -Q.
(OUTCHAR): New macro.
(SAVECHAR, SAVE_2_CHARS): Remove.
(print_name_with_quoting): New stack arg.  All callers changed.
(print_color_indicator): Cast ext len to size_t to avoid warning
with GCC 2.8.
(length_of_file_name_and_frills): Rewrite to use quote_filename.
This fixes bug when computing file name length with -e.
1997-12-14  Paul Eggert  <eggert@twinsun.com>
Add shell style quoting, and make it the default.
* NEWS, doc/fileutils.texi: Describe -e, which is now the default.
Describe change to --dired output.
* src/ls.c (quote_shell): New var.
(long_options, decode_switches, usage): New option -e or --quote-shell.
(dired_dump_obstack): New arg STYLE.
(main): Pass quoting style to dired_dump_obstack.
(decode_switches): -N now clears quote_as_string.
(quote_filename): Add shell style quoting.
1997-12-16 15:09:19 +00:00
Jim Meyering 1ca40285b2 (deep): Remove `find > k' debugging remnant. 1997-12-15 11:35:22 +00:00
Jim Meyering ce939d6f44 Make sure we get diagnostics in English. 1997-12-14 21:51:44 +00:00
Jim Meyering f126c8d3a1 Remove lseek and memchr dcls. FILEUTILS-3_16g 1997-12-14 16:28:18 +00:00
Jim Meyering 970ffd8520 *** empty log message *** 1997-12-14 16:28:06 +00:00
Jim Meyering 7dcb361c82 *** empty log message *** 1997-12-14 16:25:06 +00:00
Jim Meyering 5867abf11e *** empty log message *** 1997-12-14 15:38:18 +00:00
Jim Meyering 9afbb6eec6 (ASSIGN_STRDUPA): Cast alloca return value to char*. 1997-12-14 15:38:04 +00:00
Jim Meyering ef938e62d0 s/HAVE_DECLARATION_/HAVE_DECL_/. 1997-12-14 15:15:07 +00:00
Jim Meyering e68f7b2e4b cast memcpy to char* 1997-12-14 15:12:29 +00:00
Jim Meyering b1bd801e94 Add #serial 1. 1997-12-14 15:03:38 +00:00
Jim Meyering 56b3459d40 add memchr dcl 1997-12-14 14:00:15 +00:00
Jim Meyering f684c873f7 s/HAVE_DECLARATION/HAVE_DECL_/g 1997-12-14 12:40:33 +00:00
Jim Meyering 7c474bb76f add lseek 1997-12-14 12:03:55 +00:00
Jim Meyering 31c36865e5 *** empty log message *** 1997-12-14 12:03:38 +00:00
Jim Meyering a6c30b90a3 *** empty log message *** 1997-12-14 08:03:18 +00:00
Jim Meyering 386843fd25 s/DECLARATION_/DECL_/g.
Add memchr.
1997-12-14 08:03:07 +00:00
Jim Meyering 457d8d9aef *** empty log message *** 1997-12-14 07:44:38 +00:00
Jim Meyering 15f5e27eaf s/HAVE_DECLARATION_/HAVE_DECL_/g 1997-12-14 07:40:32 +00:00
Jim Meyering 1ac1f811f6 *** empty log message *** 1997-12-13 23:42:54 +00:00
Jim Meyering b86f6c2308 (main): Add some braces.
Check return code from fclose of each input file.
Close stdout and check for errors.
1997-12-13 23:39:09 +00:00
Jim Meyering 444c6da144 (close_output_file): Check ferror before calling fclose.
(main): Close stdout and check for errors.
1997-12-13 23:38:53 +00:00
Jim Meyering 84a050b56f . 1997-12-13 22:56:50 +00:00
Jim Meyering b5697888a0 . 1997-12-13 22:55:52 +00:00
Jim Meyering 8f38e99480 . 1997-12-13 22:54:01 +00:00
Jim Meyering f977e4b5cf Change --help output to tell the truth: that for of=FILE,
FILE *is* truncated.  Reported by Miles Bader.
Remove incomplete, usage-like comment at top of file.
1997-12-13 22:49:33 +00:00