From 63a851cfd6f6be2ecfaf695495ed788b8115fb9d Mon Sep 17 00:00:00 2001 From: Beni Cherniavsky-Paskin Date: Thu, 2 Jun 2016 00:00:19 +0300 Subject: mention nullglob exceptions in failglob error msg --- src/parse_constants.h | 2 +- tests/test5.err | 2 +- 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* ^ -- cgit v1.2.3