Allow set --query to check for pathvarness (#8494)

Currently,

    set -q --unpath PATH

simply ignores the "--unpath" bit (and same for "--path").

This changes it, so just like exportedness you can check pathness.
This commit is contained in:
Fabian Homborg
2021-11-26 18:29:10 +01:00
committed by GitHub
parent 41be9fa9fd
commit 47e45704b1
4 changed files with 34 additions and 1 deletions

View File

@@ -90,7 +90,7 @@ The exporting rules when creating or updating a variable are identical to the sc
- If a variable is not explicitly set to be either exported or unexported and has never before been defined, the variable will not be exported.
In query mode, the scope to be examined can be specified.
In query mode, the scope to be examined can be specified. Whether the variable has to be a path variable or exported can also be specified.
In erase mode, if variable indices are specified, only the specified slices of the list variable will be erased.