platform/upstream/coreutils.git
20 years agoAdd short names -t and -T for --target-directory
Jim Meyering [Fri, 2 Jul 2004 17:00:53 +0000 (17:00 +0000)]
Add short names -t and -T for --target-directory
and --no-target-directory options, respectively.

(NO_TARGET_DIRECTORY_OPTION, TARGET_DIRECTORY_OPTION):
Remove.  All uses changed to 'T' and 't', respectively.

(long_options, main, usage): Add -t and -T as
aliases for --target-directory and --no-target-directory,
respectively.

20 years agoAdd short names -t and -T for --target-directory
Jim Meyering [Fri, 2 Jul 2004 17:00:10 +0000 (17:00 +0000)]
Add short names -t and -T for --target-directory
and --no-target-directory options, respectively.

(NO_TARGET_DIRECTORY_OPTION, TARGET_DIRECTORY_OPTION):
Remove.  All uses changed to 'T' and 't', respectively.

(long_opts, usage, do_copy, main): Add -t and -T as
aliases for --target-directory and --no-target-directory,
respectively.

20 years ago * NEWS: Add short names -t and -T for --target-directory
Jim Meyering [Fri, 2 Jul 2004 16:59:41 +0000 (16:59 +0000)]
* NEWS: Add short names -t and -T for --target-directory
and --no-target-directory options, respectively.

20 years ago.
Jim Meyering [Fri, 2 Jul 2004 16:34:40 +0000 (16:34 +0000)]
.

20 years agoPut the right amount of space at sentence ends.
Jim Meyering [Fri, 2 Jul 2004 16:29:50 +0000 (16:29 +0000)]
Put the right amount of space at sentence ends.
Make sure "i.e." and "e.g." are followed by commas (the GNU style).
Put blank lines before and after every @example, prefer the
previous line to end in ":" (when not a sentence end, for consistency),
and prepend @noindent to the following line when appropriate.
In examples, use "--" arguments when needed to prevent undesired
interpretation of operands as options.
Use "file name" rather than "filename", as per the GNU coding standards.
Remove unwanted spaces before @footnote.
Use "---" when appropriate, instead of " -- ".
Use "name" (or something like that) rather than "path" or "pathname",
since the GNU coding standards don't allow "path".
Use @acronym, @command, @minus{}, @samp in a few places,
where appropriate.
(Target directory): Clarify description of example.
(fmt invocation): Give issue number for reference, and reword
for clarity.
(sort invocation): Note that xargs without -0 also mishandles
file names containing some special characters other than newline.
(Translating): Mention that \012 is not universally portable.
Use '\0' rather than '\000'.
(Squeezing): bourne -> Bourne.
Fix unportable usage of '\n' by replacing it with '[\n*]'.
(More details about version sort): Remove unnecessary indent
in examples.
(dd invocation): Use 'kill -s USR1', not 'kill -USR1', as POSIX
indicates that the former is more portable (the latter is an XSI
extension).
(shred invocation): Use @uref rather than @url, and use a more-typical
style for the date.
(kill invocation): Clarify usage; for example, "kill -s TERM -1"
isn't allowed.
(seq invocation): Reword to avoid implying that printf necessarily
fails for numbers outside the 32-bit range.  Prefer separating
options from their operands.
(Opening the software toolbox): Give an online reference to
Robbins's article, and give a date.  Don't imply that the
current documentation is unchanged from his article.
(Putting the tools together): Rework examples so that they don't
assume the C locale; nowadays many users now operate outside the C
locale by default.  While we're at it, don't assume ASCII either.
Indent example to match actual output from GNU uniq.  Remove some
unnecessary and confusing brackets from 'tr' operands.  "Software
Tools in Pascal" is back in print, according to Amazon anyway.
Add references to Kernighan's online copies of examples.

20 years ago*** empty log message ***
Jim Meyering [Fri, 2 Jul 2004 15:18:46 +0000 (15:18 +0000)]
*** empty log message ***

20 years agoFail upon use of @url. Use @uref instead.
Jim Meyering [Fri, 2 Jul 2004 15:18:43 +0000 (15:18 +0000)]
Fail upon use of @url.  Use @uref instead.

20 years ago*** empty log message ***
Jim Meyering [Fri, 2 Jul 2004 15:14:44 +0000 (15:14 +0000)]
*** empty log message ***

20 years ago(check-texinfo): Fail if a @footnote directive follows non-punctuation.
Jim Meyering [Fri, 2 Jul 2004 15:13:42 +0000 (15:13 +0000)]
(check-texinfo): Fail if a @footnote directive follows non-punctuation.

20 years ago(check-texinfo): Disallow `filename' in .texi files.
Jim Meyering [Fri, 2 Jul 2004 15:05:40 +0000 (15:05 +0000)]
(check-texinfo): Disallow `filename' in .texi files.

20 years agoChange `filesystem' to `file system' in a comment.
Jim Meyering [Wed, 30 Jun 2004 22:51:11 +0000 (22:51 +0000)]
Change `filesystem' to `file system' in a comment.

20 years ago*** empty log message ***
Jim Meyering [Wed, 30 Jun 2004 22:50:18 +0000 (22:50 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Wed, 30 Jun 2004 22:47:26 +0000 (22:47 +0000)]
.

20 years agobump serial number, remove/replace spaces before TAB.
Jim Meyering [Wed, 30 Jun 2004 22:45:32 +0000 (22:45 +0000)]
bump serial number, remove/replace spaces before TAB.

20 years agoReflect renaming:
Jim Meyering [Wed, 30 Jun 2004 22:44:55 +0000 (22:44 +0000)]
Reflect renaming:
  s/gl_LIST_MOUNTED_FILESYSTEMS/gl_LIST_MOUNTED_FILE_SYSTEMS/

20 years ago*** empty log message ***
Jim Meyering [Wed, 30 Jun 2004 22:44:15 +0000 (22:44 +0000)]
*** empty log message ***

20 years ago(gl_LIST_MOUNTED_FILE_SYSTEMS): Renamed from
Jim Meyering [Wed, 30 Jun 2004 22:44:10 +0000 (22:44 +0000)]
(gl_LIST_MOUNTED_FILE_SYSTEMS): Renamed from
gl_LIST_MOUNTED_FILESYSTEMS.  All uses changed.

20 years agoChange `filesystem' to `file system', mostly in comments.
Jim Meyering [Wed, 30 Jun 2004 22:43:06 +0000 (22:43 +0000)]
Change `filesystem' to `file system', mostly in comments.
Also in one `checking ... ' message.

20 years agobump serial number
Jim Meyering [Wed, 30 Jun 2004 22:42:11 +0000 (22:42 +0000)]
bump serial number

20 years ago(gl_AC_DOS): Define FILE_SYSTEM_PREFIX_LEN, not
Jim Meyering [Wed, 30 Jun 2004 22:41:59 +0000 (22:41 +0000)]
(gl_AC_DOS): Define FILE_SYSTEM_PREFIX_LEN, not
FILESYSTEM_PREFIX_LEN.  Generate
FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX, not
FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.  Generate
FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR, not
FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.

20 years ago.
Jim Meyering [Wed, 30 Jun 2004 22:41:35 +0000 (22:41 +0000)]
.

20 years ago.
Jim Meyering [Wed, 30 Jun 2004 22:40:52 +0000 (22:40 +0000)]
.

20 years ago(FILE_SYSTEM_PREFIX_LEN): Renamed from
Jim Meyering [Wed, 30 Jun 2004 22:40:47 +0000 (22:40 +0000)]
(FILE_SYSTEM_PREFIX_LEN): Renamed from
FILESYSTEM_PREFIX_LEN.  All uses changed.

20 years agoUse `file system', not filesystem in a comment.
Jim Meyering [Wed, 30 Jun 2004 22:40:20 +0000 (22:40 +0000)]
Use `file system', not filesystem in a comment.

20 years ago(read_file_system_list): Renamed from read_filesystem_list.
Jim Meyering [Wed, 30 Jun 2004 22:39:59 +0000 (22:39 +0000)]
(read_file_system_list): Renamed from read_filesystem_list.
All definitions and uses changed.

20 years agoUse `file system', not filesystem in a comment.
Jim Meyering [Wed, 30 Jun 2004 22:39:13 +0000 (22:39 +0000)]
Use `file system', not filesystem in a comment.

20 years ago(FILE_SYSTEM_PREFIX_LEN): Renamed from
Jim Meyering [Wed, 30 Jun 2004 22:38:03 +0000 (22:38 +0000)]
(FILE_SYSTEM_PREFIX_LEN): Renamed from
FILESYSTEM_PREFIX_LEN.  All uses changed.

20 years ago(read_file_system_list): Renamed from
Jim Meyering [Wed, 30 Jun 2004 22:37:20 +0000 (22:37 +0000)]
(read_file_system_list): Renamed from
read_filesystem_list.  All definitions and uses changed.

20 years ago(FILE_SYSTEM_PREFIX_LEN): Renamed from
Jim Meyering [Wed, 30 Jun 2004 22:37:03 +0000 (22:37 +0000)]
(FILE_SYSTEM_PREFIX_LEN): Renamed from
FILESYSTEM_PREFIX_LEN.  All uses changed.

20 years ago*** empty log message ***
Jim Meyering [Wed, 30 Jun 2004 22:35:51 +0000 (22:35 +0000)]
*** empty log message ***

20 years ago(EXTRA_DIST): Add .x-sc_file_system.
Jim Meyering [Wed, 30 Jun 2004 22:35:46 +0000 (22:35 +0000)]
(EXTRA_DIST): Add .x-sc_file_system.

20 years agoUse "file system" rather than "filesystem" in comments.
Jim Meyering [Wed, 30 Jun 2004 22:33:40 +0000 (22:33 +0000)]
Use  "file system" rather than "filesystem" in comments.

20 years ago.
Jim Meyering [Wed, 30 Jun 2004 22:33:16 +0000 (22:33 +0000)]
.

20 years ago(usage, main): Output "file system" rather than "filesystem".
Jim Meyering [Wed, 30 Jun 2004 22:31:43 +0000 (22:31 +0000)]
(usage, main): Output "file system" rather than "filesystem".
(long_options, usage): Rename "--filesystem" to
"--file-system".  But keep the old name around, for compatibility reasons.

20 years ago(usage, main): Output "file system" rather than "filesystem".
Jim Meyering [Wed, 30 Jun 2004 22:31:43 +0000 (22:31 +0000)]
(usage, main): Output "file system" rather than "filesystem".

20 years ago(sc_file_system): New target.
Jim Meyering [Wed, 30 Jun 2004 22:30:44 +0000 (22:30 +0000)]
(sc_file_system): New target.
(syntax-check-rules): Add it.

20 years ago*** empty log message ***
Jim Meyering [Wed, 30 Jun 2004 22:30:03 +0000 (22:30 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Wed, 30 Jun 2004 22:17:51 +0000 (22:17 +0000)]
*** empty log message ***

20 years agoUse "file system" rather than "filesystem".
Jim Meyering [Wed, 30 Jun 2004 22:15:59 +0000 (22:15 +0000)]
Use "file system" rather than "filesystem".

20 years ago*** empty log message ***
Jim Meyering [Wed, 30 Jun 2004 22:09:36 +0000 (22:09 +0000)]
*** empty log message ***

20 years agoStandardize on "file system" rather
Jim Meyering [Wed, 30 Jun 2004 22:09:00 +0000 (22:09 +0000)]
Standardize on "file system" rather
than "filesystem", as POSIX prefers it with a space.

20 years ago.
Jim Meyering [Wed, 30 Jun 2004 18:42:27 +0000 (18:42 +0000)]
.

20 years ago Add support for --no-target-directory option.
Jim Meyering [Wed, 30 Jun 2004 18:42:12 +0000 (18:42 +0000)]
Add support for --no-target-directory option.

20 years ago(Common options, Target directory, cp
Jim Meyering [Wed, 30 Jun 2004 18:42:01 +0000 (18:42 +0000)]
(Common options, Target directory, cp
invocation, install invocation, mv invocation, ln invocation):
Likewise.
(link invocation): Explain how to rewrite link using ln now
that we have --no-target-directory.
(ln invocation): Explain that --no-target-directory subsumes
--no-dereference.
(unlink invocation): Modify wording to match new wording in
link invocation.

20 years ago*** empty log message ***
Jim Meyering [Wed, 30 Jun 2004 18:41:49 +0000 (18:41 +0000)]
*** empty log message ***

20 years agoAdd support for --no-target-directory option.
Jim Meyering [Wed, 30 Jun 2004 18:40:40 +0000 (18:40 +0000)]
Add support for --no-target-directory option.

(NO_TARGET_DIRECTORY_OPTION): New constant.
(long_options, usage, main): Add support for

20 years agoAdd support for --no-target-directory option.
Jim Meyering [Wed, 30 Jun 2004 18:39:42 +0000 (18:39 +0000)]
Add support for --no-target-directory option.

(NO_TARGET_DIRECTORY_OPTION): New constant.
(long_options, usage, main): Add support for
(enum): Sort values.

20 years agoAdd support for --no-target-directory option.
Jim Meyering [Wed, 30 Jun 2004 18:39:18 +0000 (18:39 +0000)]
Add support for --no-target-directory option.

(NO_TARGET_DIRECTORY_OPTION): New constant.
(long_options, usage, main): Add support for

20 years agoAdd support for --no-target-directory option.
Jim Meyering [Wed, 30 Jun 2004 18:38:24 +0000 (18:38 +0000)]
Add support for --no-target-directory option.

(NO_TARGET_DIRECTORY_OPTION): New constant.
(long_opts, usage, do_copy, main): Add support for

20 years ago*** empty log message ***
Jim Meyering [Tue, 29 Jun 2004 14:42:19 +0000 (14:42 +0000)]
*** empty log message ***

20 years ago(install invocation): Document --target-directory in synopsis, too.
Jim Meyering [Tue, 29 Jun 2004 14:41:51 +0000 (14:41 +0000)]
(install invocation): Document --target-directory in synopsis, too.

20 years ago*** empty log message ***
Jim Meyering [Tue, 29 Jun 2004 14:40:51 +0000 (14:40 +0000)]
*** empty log message ***

20 years agoAdd support for 'install --target-directory', an option
Jim Meyering [Tue, 29 Jun 2004 14:40:47 +0000 (14:40 +0000)]
Add support for 'install --target-directory', an option
that has been documented for years but not implemented (!).

(TARGET_DIRECTORY_OPTION): New var.
(long_options, main, usage): Add --target-directory.
(target_directory_operand): New function, stolen from mv.c.
(main): Use it.  Check for -d and --target-directory.
Alter wording of diagnostics to match other programs.

20 years ago*** empty log message ***
Jim Meyering [Tue, 29 Jun 2004 14:38:36 +0000 (14:38 +0000)]
*** empty log message ***

20 years agoDon't let verbose-mode output from a subshell obscure actual differences.
Jim Meyering [Tue, 29 Jun 2004 14:38:32 +0000 (14:38 +0000)]
Don't let verbose-mode output from a subshell obscure actual differences.

Turn off command-echoing just before
invoking subshell, then turn it back on if VERBOSE=yes afterward.

20 years agoAdd a test to verify that we get the new
Jim Meyering [Mon, 28 Jun 2004 18:47:24 +0000 (18:47 +0000)]
Add a test to verify that we get the new
diagnostic when failing to copy through a symlink-to-inaccessible-dir.

20 years ago*** empty log message ***
Jim Meyering [Mon, 28 Jun 2004 18:47:09 +0000 (18:47 +0000)]
*** empty log message ***

20 years agoDon't assume "mv --target=nonexistentdir" will complain about the arg count.
Jim Meyering [Mon, 28 Jun 2004 18:41:01 +0000 (18:41 +0000)]
Don't assume "mv --target=nonexistentdir" will complain about the arg count.
Adjust to new (briefer) diagnostics.

20 years ago Use more-consistent rules among cp, ln, and mv when dealing with
Jim Meyering [Mon, 28 Jun 2004 18:39:28 +0000 (18:39 +0000)]
Use more-consistent rules among cp, ln, and mv when dealing with
last operands that are (or look like) directories.

* src/cp.c (target_directory_operand): New, nearly-common function,
It reports an error if the destination appears to be a directory
(e.g., because it has a trailing slash) but is not.
* src/ln.c, src/mv.c: Likewise.
* src/cp.c (do_copy): Use it.
* src/ln.c (main): Likewise.
* src/mv.c (main): Likewise.

* src/cp.c (do_copy): Don't output a usage message because of file
problems (e.g., an operand is not a directory).  Use it only for
syntax.  Standardize on "target %s is not a directory" for the
diagnostic.
* src/ln.c (main): Likewise.
* src/mv.c (main): Likewise.

* src/cp.c (do_copy): Remove test for trailing slash, since
target_directory_operand now does this.
* src/ln.c (main): Likewise.
* src/mv.c (movefile): Likewise.

* src/ln.c (isdir): Remove decl; no longer needed.
* src/mv.c (isdir, lstat): Likewise.

* src/ln.c (main): Use int to count to argc, not unsigned int.
This handles negative operand counts.
* src/mv.c (main): Likewise.

* src/mv.c (do_move): Don't call hash_init; expect the caller to
do it, for consistency with cp.c and ln.c.  All callers changed.
(movefile): dest_is_dir parameter is now bool, not int.
(main): Standardize on "missing destination file operand after %s"
for the diagnostic, for consistency with cp.c.

20 years ago Use more-consistent rules among cp, ln, and mv when dealing with
Jim Meyering [Mon, 28 Jun 2004 18:38:05 +0000 (18:38 +0000)]
Use more-consistent rules among cp, ln, and mv when dealing with
last operands that are (or look like) directories.

* src/cp.c (target_directory_operand): New, nearly-common function,
It reports an error if the destination appears to be a directory
(e.g., because it has a trailing slash) but is not.
* src/ln.c, src/mv.c: Likewise.
* src/cp.c (do_copy): Use it.
* src/ln.c (main): Likewise.
* src/mv.c (main): Likewise.

* src/cp.c (do_copy): Don't output a usage message because of file
problems (e.g., an operand is not a directory).  Use it only for
syntax.  Standardize on "target %s is not a directory" for the
diagnostic.
* src/ln.c (main): Likewise.
* src/mv.c (main): Likewise.

* src/cp.c (do_copy): Remove test for trailing slash, since
target_directory_operand now does this.
* src/ln.c (main): Likewise.
* src/mv.c (movefile): Likewise.

* src/cp.c (main): Reject multiple target directories.
Check whether a specified target is a directory when parsing the
options, using stat.  This gives more-accurate diagnostics.
* src/ln.c (main): Likewise.

* src/ln.c (isdir): Remove decl; no longer needed.
* src/mv.c (isdir, lstat): Likewise.

* src/ln.c (do_link): New arg dest_is_dir.  All uses changed.
Don't check the destination ourself; rely on dest_is_dir.
This way we can avoid lstatting the destination in the
usual case, and in the worst case we lstat 1, not 3 times.
Don't bother to unlink unless link failed; this saves a syscall.
Remove unnecessary backup_succeeded flag;
it was identical to "dest_backup != NULL".

* src/ln.c (main): Use int to count to argc, not unsigned int.
This handles negative operand counts.
* src/mv.c (main): Likewise.

20 years ago Use more-consistent rules among cp, ln, and mv when dealing with
Jim Meyering [Mon, 28 Jun 2004 18:35:54 +0000 (18:35 +0000)]
Use more-consistent rules among cp, ln, and mv when dealing with
last operands that are (or look like) directories.

* src/cp.c (target_directory_operand): New, nearly-common function,
It reports an error if the destination appears to be a directory
(e.g., because it has a trailing slash) but is not.
* src/cp.c (do_copy): Use it.

* src/cp.c (do_copy): Don't assume argc is positive.
Don't bother to lstat dest, since copy() will do that for us.
Use "const" to avoid the need for cast.

* src/cp.c (do_copy): Don't output a usage message because of file
problems (e.g., an operand is not a directory).  Use it only for
syntax.  Standardize on "target %s is not a directory" for the
diagnostic.

* src/cp.c (do_copy): Remove test for trailing slash, since
target_directory_operand now does this.

* src/cp.c (main): Reject multiple target directories.
Check whether a specified target is a directory when parsing the
options, using stat.  This gives more-accurate diagnostics.

20 years ago(usage): Fix copy+paste error in description of
Jim Meyering [Mon, 28 Jun 2004 18:31:46 +0000 (18:31 +0000)]
(usage): Fix copy+paste error in description of
--target-directory: s/move/copy/.  From Paul Jarc.

20 years ago*** empty log message ***
Jim Meyering [Mon, 28 Jun 2004 18:30:47 +0000 (18:30 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Mon, 28 Jun 2004 08:25:56 +0000 (08:25 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Mon, 28 Jun 2004 08:17:34 +0000 (08:17 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Sun, 27 Jun 2004 09:43:31 +0000 (09:43 +0000)]
*** empty log message ***

20 years agoSee whether a trailing slash is followed too far.
Jim Meyering [Sun, 27 Jun 2004 09:42:45 +0000 (09:42 +0000)]
See whether a trailing slash is followed too far.

20 years ago Fix a bug: formerly, if d/x was a directory and x a file, "ln x
Jim Meyering [Sun, 27 Jun 2004 09:41:46 +0000 (09:41 +0000)]
Fix a bug: formerly, if d/x was a directory and x a file, "ln x
d/" incorrectly created a link d/x/x.  It also saves some system
calls.

Document the fix.

20 years agoFix a bug: formerly, if d/x was a directory and x a file, "ln x
Jim Meyering [Sun, 27 Jun 2004 09:41:23 +0000 (09:41 +0000)]
Fix a bug: formerly, if d/x was a directory and x a file, "ln x
d/" incorrectly created a link d/x/x.  It also saves some system
calls.

(main): Don't append basename to dest if this
results in an existing directory name.

20 years agoput \n in format string, not in actual diagnostic
Jim Meyering [Sat, 26 Jun 2004 13:12:42 +0000 (13:12 +0000)]
put \n in format string, not in actual diagnostic

20 years ago*** empty log message ***
Jim Meyering [Sat, 26 Jun 2004 13:09:39 +0000 (13:09 +0000)]
*** empty log message ***

20 years ago(main): When given no arguments, print the standard
Jim Meyering [Sat, 26 Jun 2004 13:09:17 +0000 (13:09 +0000)]
(main): When given no arguments, print the standard
"missing operand\nTry printf --help..." message -- to be consistent.

20 years ago*** empty log message ***
Jim Meyering [Sat, 26 Jun 2004 12:43:49 +0000 (12:43 +0000)]
*** empty log message ***

20 years ago(main): Add \n at the end of message output via fprintf.
Jim Meyering [Sat, 26 Jun 2004 12:43:44 +0000 (12:43 +0000)]
(main): Add \n at the end of message output via fprintf.

20 years agoAdd Basque (eu).
Jim Meyering [Sat, 26 Jun 2004 12:37:01 +0000 (12:37 +0000)]
Add Basque (eu).

20 years ago*** empty log message ***
Jim Meyering [Sat, 26 Jun 2004 08:49:14 +0000 (08:49 +0000)]
*** empty log message ***

20 years agoAdd Basque (eu).
Jim Meyering [Sat, 26 Jun 2004 08:49:11 +0000 (08:49 +0000)]
Add Basque (eu).

20 years ago*** empty log message ***
Jim Meyering [Fri, 25 Jun 2004 21:11:01 +0000 (21:11 +0000)]
*** empty log message ***

20 years ago(gl_AFS): Use AC_ARG_WITH instead of ancient, hard-coded
Jim Meyering [Fri, 25 Jun 2004 21:10:55 +0000 (21:10 +0000)]
(gl_AFS): Use AC_ARG_WITH instead of ancient, hard-coded
AC_MSG_CHECKING/AC_MSG_RESULT etc.  From Tim Waugh.

20 years ago*** empty log message ***
Jim Meyering [Fri, 25 Jun 2004 07:14:17 +0000 (07:14 +0000)]
*** empty log message ***

20 years agoAdd test for ln subscript error.
Jim Meyering [Fri, 25 Jun 2004 07:14:08 +0000 (07:14 +0000)]
Add test for ln subscript error.

20 years ago*** empty log message ***
Jim Meyering [Fri, 25 Jun 2004 06:58:53 +0000 (06:58 +0000)]
*** empty log message ***

20 years ago(do_link): Remove unnecessary call to lstat.
Jim Meyering [Fri, 25 Jun 2004 06:51:51 +0000 (06:51 +0000)]
(do_link): Remove unnecessary call to lstat.
(main): Avoid subscript error when the destination is "".

20 years ago*** empty log message ***
Jim Meyering [Thu, 24 Jun 2004 05:54:01 +0000 (05:54 +0000)]
*** empty log message ***

20 years ago(obstack_base): Fix parentheses. From Paul Eggert.
Jim Meyering [Thu, 24 Jun 2004 05:53:54 +0000 (05:53 +0000)]
(obstack_base): Fix parentheses.  From Paul Eggert.

20 years ago.
Jim Meyering [Wed, 23 Jun 2004 15:09:27 +0000 (15:09 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jun 2004 15:07:22 +0000 (15:07 +0000)]
*** empty log message ***

20 years agoReplace all occurrences of `(exit N); exit' with
Jim Meyering [Wed, 23 Jun 2004 15:07:00 +0000 (15:07 +0000)]
Replace all occurrences of `(exit N); exit' with
`(exit N); exit N'.  Otherwise, those many tests could exit with
improper exit status when exiting via e.g., a trapped interrupt.
Thanks to a report from Bob Proulx.

20 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jun 2004 14:48:28 +0000 (14:48 +0000)]
*** empty log message ***

20 years ago(idle_string, print_user): New arg boottime,
Jim Meyering [Wed, 23 Jun 2004 14:48:16 +0000 (14:48 +0000)]
(idle_string, print_user): New arg boottime,
specifying the most recent boot time.  All uses changed.
(idle_string) Consider a line to be "old" if it hasn't been used
since the last boot time.  Watch out for overflow when computing
times, and for times in the future.
(idle_string): Record latest boot time.

20 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jun 2004 15:04:52 +0000 (15:04 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Tue, 22 Jun 2004 15:02:59 +0000 (15:02 +0000)]
.

20 years agoThe 2004-06-19 fix for who and pinky was incomplete, as ctime
Jim Meyering [Tue, 22 Jun 2004 15:00:53 +0000 (15:00 +0000)]
The 2004-06-19 fix for who and pinky was incomplete, as ctime
has undefined behavior if the year precedes -999 or follows 9999.
Since we have to stop using ctime anyway, we might as well use
strftime and fix the FIXME, and support internationalized dates.

* src/who.c: Include "hard-locale.h".
(time_format, time_format_width): New vars.
(time_string, print_line): Use them.
(main): Set them.
(time_string): Use localtime + strftime instead of
ctime, to avoid problems with years before -999 or after 9999.
* src/pinky.c: Likewise.

20 years agoThe 2004-06-19 fix for who and pinky was incomplete, as ctime
Jim Meyering [Tue, 22 Jun 2004 14:56:46 +0000 (14:56 +0000)]
The 2004-06-19 fix for who and pinky was incomplete, as ctime
has undefined behavior if the year precedes -999 or follows 9999.
Since we have to stop using ctime anyway, we might as well use
strftime and fix the FIXME, and support internationalized dates.

Include "hard-locale.h".
(time_format, time_format_width): New vars.
(time_string, print_line): Use them.
(main): Set them.
(time_string): Use localtime + strftime instead of
ctime, to avoid problems with years before -999 or after 9999.

20 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jun 2004 14:55:34 +0000 (14:55 +0000)]
*** empty log message ***

20 years ago(usage): Correct description of `-t FD'. The file
Jim Meyering [Tue, 22 Jun 2004 14:55:30 +0000 (14:55 +0000)]
(usage): Correct description of `-t FD'.  The file
descriptor, FD, is no longer optional.  Reported by Ton Nijkes.

20 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jun 2004 14:55:09 +0000 (14:55 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jun 2004 12:50:06 +0000 (12:50 +0000)]
*** empty log message ***

20 years agoFix bug: GNU 'ls' didn't count columns correctly if user or group
Jim Meyering [Tue, 22 Jun 2004 12:50:01 +0000 (12:50 +0000)]
Fix bug: GNU 'ls' didn't count columns correctly if user or group
names contained multibyte characters where the column count
differed from the byte count.  This patch also corrects
some comments.

(format_user_or_group): New function, which counts columns correctly.
(format_user, format_group): Use it.
(format_user_or_group_width): New function, which counts columns correctly.
(format_user_width, format_group_width): Use it.

20 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jun 2004 06:16:11 +0000 (06:16 +0000)]
*** empty log message ***