summaryrefslogtreecommitdiff
path: root/src/tr.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-10-02 22:10:57 +0000
committerJim Meyering <jim@meyering.net>1994-10-02 22:10:57 +0000
commit7079da8b5a0c43bf1c60cd1eceb3324f0022fcf7 (patch)
tree61be0bbd1ff97daa1344fb7aeb1cc34082eda2f9 /src/tr.c
parentd9a92fd81c6968aa01892315e6705b527cf436f5 (diff)
downloadcoreutils-7079da8b5a0c43bf1c60cd1eceb3324f0022fcf7.tar.xz
.
Diffstat (limited to 'src/tr.c')
-rw-r--r--src/tr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tr.c b/src/tr.c
index e34eae180..7e1f3a2c5 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -343,7 +343,7 @@ Usage: %s [OPTION]... SET1 [SET2]\n\
SETs are specified as strings of characters. Most represent\n\
themselves. Here are the special writings:\n\
\n\
- \\NNN character with octal value NNN (1 to 3 digits)\n\
+ \\NNN character with octal value NNN (1 to 3 octal digits)\n\
\\\\ backslash\n\
\\a audible BEL\n\
\\b backspace\n\
@@ -1798,6 +1798,9 @@ deleting and squeezing repeats");
without squeezing repeats");
}
+ if (squeeze_repeats && non_option_args == 0)
+ error (1, 0, "at least one string must be given when squeezing repeats");
+
spec_init (s1);
if (parse_str ((unsigned char *) argv[optind], s1))
exit (1);