diff options
author | Jim Meyering <jim@meyering.net> | 2007-08-28 18:41:41 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-08-28 18:42:45 +0200 |
commit | adfc479d47cb0323b4dd4fa93ed9a5df6a93b7b8 (patch) | |
tree | 317547708803683ee4b23d3d05a32913cd7f3fd8 | |
parent | d6d5658df6cde248948fe411938140b0139767eb (diff) | |
download | coreutils-adfc479d47cb0323b4dd4fa93ed9a5df6a93b7b8.tar.xz |
* src/test.c (usage): Say that [ honors --help and --version, but test does not.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/test.c | 7 |
2 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,8 @@ 2007-08-28 Jim Meyering <jim@meyering.net> + * src/test.c (usage): Note that [ honors --help and --version, + but that test does not. Suggestion from Dan Jacobson. + By default, do not install hostname anymore; no kidding, this time. * src/Makefile.am (EXTRA_PROGRAMS): Remove hostname from this list, now that it's no longer being installed by default. This should diff --git a/src/test.c b/src/test.c index c307565ce..c0d89387d 100644 --- a/src/test.c +++ b/src/test.c @@ -2,7 +2,7 @@ /* Modified to run with the GNU shell by bfox. */ -/* Copyright (C) 1987-2005 Free Software Foundation, Inc. +/* Copyright (C) 1987-2005, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -770,6 +770,11 @@ Except for -h and -L, all FILE-related tests dereference symbolic links.\n\ Beware that parentheses need to be escaped (e.g., by backslashes) for shells.\n\ INTEGER may also be -l STRING, which evaluates to the length of STRING.\n\ "), stdout); + fputs (_("\ +\n\ +NOTE: [ honors the --help and --version options, but test does not.\n\ +test treats each of those as it treats any other nonempty STRING.\n\ +"), stdout); printf (USAGE_BUILTIN_WARNING, _("test and/or [")); emit_bug_reporting_address (); } |