Commit Graph
22888 Commits
Author SHA1 Message Date
Jim Meyering ef43db1c4b (dir_name_r): New function, factored out of dir_name.
(dir_name): Use dir_name_r.
2000-10-21 11:44:43 +00:00
Jim Meyering b9dbd94712 *** empty log message *** 2000-10-21 11:29:01 +00:00
Jim Meyering 9ff69c8035 (memrchr): Declare if necessary.
(dir_name): Remove the restriction that there be no
trailing slashes.  Now, this code skips past them, effectively
ignoring them.
[TEST_DIRNAME] (main): New unit tests.
2000-10-21 11:28:42 +00:00
Jim Meyering c03498f2e7 *** empty log message *** 2000-10-21 10:37:14 +00:00
Jim Meyering e45c3dba07 (jm_PREREQ_DIRNAME): New macro. 2000-10-21 10:37:10 +00:00
Jim Meyering bc6477ff72 (AC_REPLACE_FUNCS): Add memrchr. 2000-10-21 10:36:49 +00:00
Jim Meyering e46f105350 (jm_CHECK_DECLS): Also check for memrchr. 2000-10-21 10:36:32 +00:00
Jim Meyering 6ab7032952 *** empty log message *** 2000-10-21 10:33:25 +00:00
Jim Meyering a5301cb3e2 New file, derived from the one in GNU libc. 2000-10-21 10:27:59 +00:00
Jim Meyering 9bab244d20 . 2000-10-19 11:43:34 +00:00
Jim Meyering 3b5b337246 Update from master repository. 2000-10-19 11:43:28 +00:00
Jim Meyering 3b60294bd9 *** empty log message *** 2000-10-18 20:48:04 +00:00
Jim Meyering 7243403b27 (universal_time): Remove; it's just a temptation to do the wrong thing.
(main): The -u option now just sets TZ; it doesn't do anything else.
(show_date): Do not do anything special if -u is set.
This affects the behavior of the -I and -R options.
2000-10-18 20:47:25 +00:00
Jim Meyering d478d6efec * src/date.c (universal_time): Remove; it's just a temptation to
do the wrong thing.
(main): The -u option now just sets TZ; it doesn't do anything else.
(show_date): Do not do anything special if -u is set.
This affects the behavior of the -I and -R options.

* doc/sh-utils.texi: Document the above.
2000-10-18 20:45:20 +00:00
Jim Meyering dbfbb93424 Undo the effect of the 1997-07-12 change to date.c; it
broke "date -u MMDDhhmm" and it wasn't documented.
This reverts to the behavior of the 1996-01-03 patch.

(utc-0, utc-1, relative-2): Adjust to above change.
2000-10-18 19:03:30 +00:00
Jim Meyering 29a4bf90d3 Undo the effect of the 1997-07-12 change to date.c; it
broke "date -u MMDDhhmm" and it wasn't documented.
This reverts to the behavior of the 1996-01-03 patch.

(TZ_UTC0, MAYBE_SET_TZ_UTC0, set_tz): Remove.
(batch_convert): Don't futz with TZ.
(main): -u now parses all dates as UTC, not just some.
2000-10-18 19:02:56 +00:00
Jim Meyering fe5cad6b29 space to tab 2000-10-18 19:02:34 +00:00
Jim Meyering 39520407ef *** empty log message *** 2000-10-18 09:51:00 +00:00
Jim Meyering 2e4b629e21 (Examples of date): Fix a typo. 2000-10-18 09:50:56 +00:00
Jim Meyering eaca68c289 *** empty log message *** 2000-10-18 07:42:08 +00:00
Jim Meyering 7e02b6c989 Make sure the programs use C-locale formats
and translations.  Bruno Haible reported that this test would fail
when using other locales, because ls printed a translation of `total'.
2000-10-18 07:41:59 +00:00
Jim Meyering 32dfed954f *** empty log message *** 2000-10-17 08:45:42 +00:00
Jim Meyering 55f43f7915 *** empty log message *** 2000-10-17 08:45:32 +00:00
Jim Meyering 6cca23cec4 *** empty log message *** 2000-10-17 08:45:11 +00:00
Jim Meyering 0be2660d96 [PARAMS]: Define and use. 2000-10-17 08:45:07 +00:00
Jim Meyering a8bf544803 *** empty log message *** 2000-10-17 06:45:57 +00:00
Jim Meyering c841079462 Update from libc. 2000-10-17 06:45:49 +00:00
Jim Meyering ad06715030 *** empty log message *** 2000-10-16 22:05:20 +00:00
Jim Meyering 66a4baa8a6 *** empty log message *** 2000-10-16 22:01:11 +00:00
Jim Meyering ae2b7961cf *** empty log message *** 2000-10-16 14:31:38 +00:00
Jim Meyering 6f84766d19 *** empty log message *** 2000-10-16 14:30:39 +00:00
Jim Meyering fd00df9c4d fix spell-o in comment 2000-10-16 08:10:58 +00:00
Jim Meyering d15557db96 (rm_option_init): Remove FIXME-maybe comment. 2000-10-16 08:09:57 +00:00
Jim Meyering b31c11e46b . 2000-10-16 08:09:42 +00:00
Jim Meyering bdb5516fdd *** empty log message *** 2000-10-16 06:25:55 +00:00
Jim Meyering c8c93cfefa *** empty log message *** 2000-10-16 06:25:29 +00:00
Jim Meyering 640221896f (hard_locale): Use "", not 0 as 2nd arg to setlocale.
From Jan Fedak.
2000-10-16 06:24:33 +00:00
Jim Meyering d73ea5f65a . 2000-10-15 11:53:35 +00:00
Jim Meyering d72623052b . 2000-10-12 02:36:18 +00:00
Jim Meyering a5b38192d0 (Time directives) [%S]: Range is 0..60, not 0..61. 2000-10-12 02:28:27 +00:00
Jim Meyering 5681a0705f *** empty log message *** 2000-09-30 11:58:17 +00:00
Jim Meyering 04f6bb2648 *** empty log message *** 2000-09-30 09:50:23 +00:00
Jim Meyering ad09410b04 (main): Rename local symbolic_mode' to specified_mode'. 2000-09-30 09:40:56 +00:00
Jim Meyering cc4722e802 *** empty log message *** 2000-09-30 09:39:52 +00:00
Jim Meyering f8e66794d9 (change_file_mode): Perform the chmod even if the
file mode permission bits are the same as those that should be set.
Omitting the chmod call would be alright with minimal 1003.1e DS17
ACLs, but eventually there will be other permissions in addition to
rwx.  E.g., add and delete for directories, and something analogous
to NT's take ownership permission.
2000-09-30 09:39:41 +00:00
Jim Meyering e2b45cb9fe (main): Don't set the umask to 0 and hand-apply
the previously-set umask unconditionally.  Do that only when a
MODE has been specified.  Otherwise, call mkfifo with the full
creation mask (0777 or 0666) and let the kernel apply the umask.
The difference shows up only on file systems with ACL support
when the containing directory has a default ACL.
Patch by Andreas Gruenbacher.
(main): Rename local `symbolic_mode' to `specified_mode'.
Also, when MODE is specified, call chmod to ensure that the
permission bits are set as specified even when the containing
directory has a default ACL.
2000-09-30 08:56:06 +00:00
Jim Meyering 2170a48956 (main): Rename local symbolic_mode' to specified_mode'. 2000-09-30 08:53:27 +00:00
Jim Meyering beebc69168 (main): Don't set the umask to 0 and hand-apply
the previously-set umask unconditionally.  Do that only when a
MODE has been specified.  Otherwise, call mknod with the full
creation mask (0777 or 0666) and let the kernel apply the umask.
The difference shows up only on file systems with ACL support
when the containing directory has a default ACL.
Patch by Andreas Gruenbacher.
(main): Rename local `symbolic_mode' to `specified_mode'.
Also, when MODE is specified, call chmod to ensure that the
permission bits are set as specified even when the containing
directory has a default ACL.
2000-09-30 08:53:10 +00:00
Jim Meyering daf9d41918 (main): Rename local symbolic_mode' to specified_mode'. 2000-09-30 08:49:51 +00:00
Jim Meyering 105cbe3ea3 (main): Don't set the umask to 0 and hand-apply
the previously-set umask unconditionally.  Do that only when a
MODE has been specified.  Otherwise, call mkdir with the full
creation mask (0777 or 0666) and let the kernel apply the umask.
The difference shows up only on file systems with ACL support
when the containing directory has a default ACL.
Patch by Andreas Gruenbacher.
2000-09-30 08:49:17 +00:00