Point wildcard error at a more specific help section

"Expansion" covers *all* the expansions, that's a bit of a handful.

Directly point people towards globbing.
This commit is contained in:
Fabian Homborg
2021-08-11 18:40:37 +02:00
parent b0b6a585a8
commit b5e5732be1
2 changed files with 2 additions and 2 deletions

View File

@@ -224,7 +224,7 @@ enum class pipeline_position_t {
#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'. See `help expand`.")
#define WILDCARD_ERR_MSG _(L"No matches for wildcard '%ls'. See `help wildcards-globbing`.")
/// Error message when an expansion produces too many results, e.g. `echo /**`.
#define EXPAND_OVERFLOW_ERR_MSG _(L"Too many items produced by '%ls'.")

View File

@@ -88,7 +88,7 @@ switch $smurf
case "*"
echo Test 2 fail
end
#CHECKERR: {{.*}}switch.fish (line {{\d+}}): No matches for wildcard '*ee*'. See `help expand`.
#CHECKERR: {{.*}}switch.fish (line {{\d+}}): No matches for wildcard '*ee*'. See `help wildcards-globbing`.
#CHECKERR: case *ee*
#CHECKERR: ^
#CHECK: Test 2 pass