mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 19:31:14 -03:00
Allow setting universal path variables
Support for path and unpath in universal variables. Fixes #5271
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
|
||||
####################
|
||||
# Path universal variables
|
||||
|
||||
@@ -311,4 +311,18 @@ set -x DONT_ESCAPE_COLONS 1: 2: :3: ; env | grep '^DONT_ESCAPE_COLONS='
|
||||
set -x DONT_ESCAPE_SPACES '1 ' '2 ' ' 3 ' 4 ; env | grep '^DONT_ESCAPE_SPACES='
|
||||
set -x DONT_ESCAPE_COLONS_PATH 1: 2: :3: ; env | grep '^DONT_ESCAPE_COLONS_PATH='
|
||||
|
||||
logmsg Path universal variables
|
||||
set __fish_test_path_not a b c
|
||||
set __fish_test_PATH 1 2 3
|
||||
echo "$__fish_test_path_not $__fish_test_PATH"
|
||||
set --unpath __fish_test_PATH $__fish_test_PATH
|
||||
echo "$__fish_test_path_not $__fish_test_PATH"
|
||||
set --path __fish_test_path_not $__fish_test_path_not
|
||||
echo "$__fish_test_path_not $__fish_test_PATH"
|
||||
set --path __fish_test_PATH $__fish_test_PATH
|
||||
echo "$__fish_test_path_not $__fish_test_PATH"
|
||||
|
||||
|
||||
|
||||
|
||||
true
|
||||
|
||||
@@ -46,3 +46,10 @@ MANPATH=man1:man2:man3
|
||||
DONT_ESCAPE_COLONS=1: 2: :3:
|
||||
DONT_ESCAPE_SPACES=1 2 3 4
|
||||
DONT_ESCAPE_COLONS_PATH=1::2:::3:
|
||||
|
||||
####################
|
||||
# Path universal variables
|
||||
a b c 1:2:3
|
||||
a b c 1 2 3
|
||||
a:b:c 1 2 3
|
||||
a:b:c 1:2:3
|
||||
|
||||
Reference in New Issue
Block a user