aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Beni Cherniavsky-Paskin <cben@redhat.com>2016-06-02 00:00:19 +0300
committerGravatar Kurtis Rader <krader@skepticism.us>2016-06-02 19:51:19 -0700
commit63a851cfd6f6be2ecfaf695495ed788b8115fb9d (patch)
tree46803b28892361d1d3c5a474b6a2ef451bfe4004
parent24d6f6d06637e1045a819329e5505eb2e43fb1bc (diff)
mention nullglob exceptions in failglob error msg
-rw-r--r--src/parse_constants.h2
-rw-r--r--tests/test5.err2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/parse_constants.h b/src/parse_constants.h
index 01580d15..8381f2ae 100644
--- a/src/parse_constants.h
+++ b/src/parse_constants.h
@@ -209,7 +209,7 @@ void parse_error_offset_source_start(parse_error_list_t *errors, size_t amt);
#define ILLEGAL_FD_ERR_MSG _(L"Illegal file descriptor in redirection '%ls'")
/// Error message for wildcards with no matches.
-#define WILDCARD_ERR_MSG _(L"No matches for wildcard '%ls'.")
+#define WILDCARD_ERR_MSG _(L"No matches for wildcard '%ls'. (Tip: empty matches are allowed in 'set', 'count', 'for'.)")
/// Error when using break outside of loop.
#define INVALID_BREAK_ERR_MSG _(L"'break' while not inside of loop")
diff --git a/tests/test5.err b/tests/test5.err
index 7dba999c..58849bd1 100644
--- a/tests/test5.err
+++ b/tests/test5.err
@@ -1,3 +1,3 @@
-No matches for wildcard '*ee*'.
+No matches for wildcard '*ee*'. (Tip: empty matches are allowed in 'set', 'count', 'for'.)
fish: case *ee*
^