diff options
author | Jim Meyering <jim@meyering.net> | 1994-10-02 22:10:57 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-10-02 22:10:57 +0000 |
commit | 7079da8b5a0c43bf1c60cd1eceb3324f0022fcf7 (patch) | |
tree | 61be0bbd1ff97daa1344fb7aeb1cc34082eda2f9 /src/tr.c | |
parent | d9a92fd81c6968aa01892315e6705b527cf436f5 (diff) | |
download | coreutils-7079da8b5a0c43bf1c60cd1eceb3324f0022fcf7.tar.xz |
.
Diffstat (limited to 'src/tr.c')
-rw-r--r-- | src/tr.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |