fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

NahorFix failing system tests on Cygwin440e7fcbc

master
627 B28 linesraw
1# RUN: env PATH="/usr/bin:a::b" CDPATH="d::e" MANPATH="x::y" %fish %s
2# PATH must contain `/usr/bin` for the test to work on Cygwin (Cygwin must be
3# able to find its DLLs when loading fish.exe)
4
5# In PATH and CDPATH, empty elements are treated the same as "."
6# In fish we replace them explicitly. Ensure that works.
7# Do not replace empties in MANPATH - see #4158.
8
9echo "$PATH"
10# CHECK: /usr/bin:a:.:b
11
12echo "$CDPATH"
13# CHECK: d:.:e
14
15echo "$MANPATH"
16# CHECK: x::y
17
18set PATH abc '' def
19echo "$PATH"
20# CHECK: abc:.:def
21
22set CDPATH '' qqq
23echo "$CDPATH"
24# CHECK: .:qqq
25
26set MANPATH 123 '' 456
27echo "$MANPATH"
28# CHECK: 123::456