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

@@ -75,6 +75,7 @@ Scripting improvements
- ``math`` now correctly prints negative values and values larger than ``2**31`` when in hex or octal bases (:issue:`8417`).
- ``dirs`` always produces an exit status of 0, instead of sometimes returning 1 (:issue:`8211`).
- ``cd ""`` no longer crashes fish (:issue:`8147`).
- ``set --query`` can now query whether a variable is a pathvar via ``--path`` or ``--unpath`` (:issue:`8494`).
Interactive improvements
------------------------