mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-21 07:03:41 +08:00
27 lines
485 B
Fish
27 lines
485 B
Fish
|
# RUN: env PATH="a::b" CDPATH="d::e" MANPATH="x::y" %fish %s
|
||
|
|
||
|
# In PATH and CDPATH, empty elements are treated the same as "."
|
||
|
# In fish we replace them explicitly. Ensure that works.
|
||
|
# Do not replace empties in MATHPATH - see #4158.
|
||
|
|
||
|
echo "$PATH"
|
||
|
# CHECK: a:.:b
|
||
|
|
||
|
echo "$CDPATH"
|
||
|
# CHECK: d:.:e
|
||
|
|
||
|
echo "$MANPATH"
|
||
|
# CHECK: x::y
|
||
|
|
||
|
set PATH abc '' def
|
||
|
echo "$PATH"
|
||
|
# CHECK: abc:.:def
|
||
|
|
||
|
set CDPATH '' qqq
|
||
|
echo "$CDPATH"
|
||
|
# CHECK: .:qqq
|
||
|
|
||
|
set MANPATH 123 '' 456
|
||
|
echo "$MANPATH"
|
||
|
# CHECK: 123::456
|