Jim Meyering
85f9983c19
(docolon): Set re_syntax_options to RE_SYNTAX_POSIX_BASIC
...
so expr's pattern matching uses BASIC (not GNU-extended) REs.
Reported by Jim Kingdon.
1996-02-23 16:13:53 +00:00
Jim Meyering
9cb56e2980
(print_entry): Use strchr, not index.
1996-02-23 16:12:01 +00:00
Jim Meyering
c5134a9b13
(batch_convert): Declare BUFLEN local to be of type size_t, not int.
1996-02-23 16:11:14 +00:00
Jim Meyering
756fe67e60
(xfields) [without -t]: Ignore leading blanks.
...
From David Dyck (dcd@tc.fluke.COM ).
1996-02-22 00:58:12 +00:00
Jim Meyering
28a24ea3be
[TOLOWER]: Define.
...
(usage): Briefly describe new --ignore-case (-i) option.
(memcasecmp): New function.
(main): Set IGNORE_CASE for -i.
(keycmp): Compare with memcasecmp if IGNORE_CASE is set.
Suggestion and an initial patch from Alberto Accomazzi
<alberto@cfa0.harvard.edu >.
1996-02-18 18:08:01 +00:00
Jim Meyering
1f37d82ce4
Add -z option. Change all occurrences of '\n' to `eolchar'.
...
(usage): Describe it.
(main): Set eolchar to 0 for -z.
From Mark W. Eichin <eichin@cygnus.com >.
1996-02-18 00:55:08 +00:00
Jim Meyering
73d5e9c5dd
Mark a few error strings for translation.
...
From Franc,ois Pinard.
1996-02-17 03:42:26 +00:00
Jim Meyering
816194943b
(copy): Detect (and fail) when creating backup file would destroy source.
...
Reported by Martin C. Martin <mcm@cs.cmu.edu >.
1996-02-16 05:08:04 +00:00
Jim Meyering
dd05029135
(main): When failing because there were `too many arguments,' say so.
1996-02-14 05:48:48 +00:00
Jim Meyering
0b2ebf9875
(print_entry): If possible, canonicalize the host hame.
...
From Miles Bader (miles@gnu.ai.mit.edu ).
1996-02-13 05:27:16 +00:00
Jim Meyering
58e02de834
[.TRUE]: Undefine before defining.
...
[FALSE]: Undefine before defining.
From Derek Clegg (dclegg@next.com ).
1996-02-13 03:12:52 +00:00
Jim Meyering
41d5fb8189
(main): Decalare local, BS.
1996-02-01 06:16:57 +00:00
Jim Meyering
46505987ea
(main): Accept new option, --rfc-822 (-R).
...
(show_date): Use RFC822-mandated strftime format.
From H. Peter Anvin (hpa@storm.net ).
(usage): Add a line describing the new option.
1996-02-01 05:44:59 +00:00
Jim Meyering
e76eb59d84
(main): New options --human-readable (-h) and --megabytes (-m).
...
(human_readable_1k_blocks): New function.
(print_header): Honor new options.
(show_dev): Honor new options.
Add ifdef'd-out code to avoid printing lines for mount points that
match ^/auto/.* and ^/tmp_mnt.*. Rather than hard-coding those
two prefixes, the code should allow the user to specify a regular
expression. From Larry McVoy (lm@sgi.com ).
(human_readable_1k_blocks): Likewise
(usage): Update usage message to reflect additions.
1996-02-01 05:30:14 +00:00
Jim Meyering
a468d7579f
(dump_remainder): Flush stdout when tailing-forever on multiple files.
...
From Carlos Canau <Carlos.Canau@relay.puug.pt >.
1996-02-01 05:25:54 +00:00
Jim Meyering
3b69e6514c
Remove comma after last item in enum.
...
(human_readable): Fix off-by-one error that converted
1024*1024 to 1024K rather than 1G. Describe the function.
1996-02-01 04:13:26 +00:00
Jim Meyering
9018ec3d41
(skip): Change type of parameter #5 from char* to unsigned char* to match
...
type of argument.
(copy): Cast first arg in memset call to char* to avoid warnings from
SunOS's acc.
(copy_simple): Likewise.
1996-02-01 03:50:06 +00:00
Jim Meyering
7bfb13dea7
Tweak usage.
1996-01-20 14:27:56 +00:00
Jim Meyering
744d31d57a
(main): New options --human-readable (-h) and --megabytes (-m).
...
(human_readable): New function.
From Larry McVoy (lm@sgi.com ).
1996-01-20 14:26:04 +00:00
Jim Meyering
156a61c86d
(usage): Copy backup/suffix stuff from ln.c.
...
(main): Handle 'S' in getopt switch.
1996-01-20 12:37:12 +00:00
Jim Meyering
c3e64b1b2d
(copy_files): Accept backup options just as cp, ln, and
...
mv do: --backup (-b). From Marty Leisner <leisner@sdsp.mc.xerox .c>.
1996-01-19 17:39:06 +00:00
Jim Meyering
2131b2e9d5
Protoize.
1996-01-19 16:05:23 +00:00
Jim Meyering
863c253425
(argdecode): Declare parameter const.
1996-01-17 17:50:08 +00:00
Jim Meyering
08d800d44e
(advance): Protoize function.
1996-01-17 17:46:12 +00:00
Jim Meyering
e23e3f656a
Break some long lines.
...
Add const attribute to a few parameters.
1996-01-17 17:44:22 +00:00
Jim Meyering
4ad4b8aaec
(integer_arg): Use xstrtol instead of open-coding this.
1996-01-17 17:41:00 +00:00
Jim Meyering
2a0d3143dd
(visible): Change parameter type to unsigned int from unsigned char.
1996-01-17 17:20:41 +00:00
Jim Meyering
6e867c19c9
Protoize and __P-protect forward dcls.
1996-01-17 17:19:07 +00:00
Jim Meyering
c78152220a
Indent cpp directives.
1996-01-14 04:31:59 +00:00
Jim Meyering
be2519d4dd
.
1996-01-14 04:19:34 +00:00
Jim Meyering
9800c1597f
Include config.h.
1996-01-14 04:18:48 +00:00
Jim Meyering
13751495a1
(print_element): Change type of argument from char
...
to int to avoid potential promotion problem.
1996-01-07 04:08:44 +00:00
Jim Meyering
1d2f218bff
(print_esc_char): Change type of argument from char to int to avoid
...
potential promotion problem.
1996-01-07 04:06:41 +00:00
Jim Meyering
00b953713e
Fix typo in __P use.
1996-01-07 04:04:48 +00:00
Jim Meyering
53398947a1
Protoize and __P-protect forward dcls.
1996-01-06 11:44:05 +00:00
Jim Meyering
5e14cce7ae
Define WHO and include new file, who-users.c.
1996-01-06 11:17:50 +00:00
Jim Meyering
27276e481d
.
1996-01-06 11:16:08 +00:00
Jim Meyering
7949927db6
rename from who.c
1996-01-06 11:13:11 +00:00
Jim Meyering
634853cee6
Remove NGROUPS_MAX junk. It wasn't being used.
1996-01-06 06:10:08 +00:00
Jim Meyering
0f100b0d3f
(putenv): Declare.
...
(universal_time): Remove.
(main): If -u is given, set TZ to "UTC0"; this causes date to use
UTC uniformly and fixes bugs in the handling of date -u +'%s %Z'.
(show_date): Just use localtime and a single format, since TZ will
be set properly if -u is given. From Paul Eggert.
1996-01-06 06:07:23 +00:00
Jim Meyering
83adf65c37
Remove no-longer-used NGROUPS_MAX cpp macros.
...
(print_group_list) [HAVE_GETGROUPS]: Reorganize to use getgroups (0, NULL)
to compute number of groups at run time rather than relying on NGROUPS_MAX
at compile time.
(print_full_info) [HAVE_GETGROUPS]: Likewise.
Suggestion from Roland McGrath.
1996-01-06 06:04:09 +00:00
Jim Meyering
aff66fa170
Include rx.h after limit.h to avoid warning about
...
redeclaration of RE_DUP_MAX in limit.h. rx.h protects its
definition. From Kaveh Ghazi.
1996-01-05 02:44:42 +00:00
Jim Meyering
981d081027
(usage): Tweak wording in --help output.
1996-01-04 05:31:58 +00:00
Jim Meyering
360b2870d8
(keycompare): Rewrite cases handling -i and -if to fix bug whereby
...
non-ascii characters (supposed to be ignored with -i) were treated
as significant. Reported by Carl Johnson <carlj@cjlinux.home.org >.
1996-01-02 06:10:39 +00:00
Jim Meyering
a7190a7381
(extract_regexp) [!WITH_REGEX]: Initialize re_compiled.syntax_parens.
...
From Andreas Schwab.
1995-12-31 04:10:13 +00:00
Jim Meyering
c22b040b21
(decode_switches): Make -o a synonym for -lG for compatibility
...
with most other versions of ls. Reported by Karl Berry.
(usage): Update.
1995-12-23 17:38:08 +00:00
Jim Meyering
d5f4d5f22e
(usage): Align text in -n line.
1995-12-22 15:30:31 +00:00
Jim Meyering
05d30f2715
(cleanup): New function -- broken out from quit.
...
(interrupt_handler): Rewrite to reset default signal handler,
call cleanup, then repost caught signal.
1995-12-22 06:49:10 +00:00
Jim Meyering
b808e70940
Include argmatch.h.
1995-12-22 05:31:17 +00:00
Jim Meyering
654ad9e596
(main): Accept new option, --sparse={never,auto,always},
...
to control creation of sparse files.
(copy_reg): Set local, make_holes, from global flag_sparse.
Include argmatch.h.
1995-12-22 05:30:48 +00:00