fork/fish-shell

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

Nahortests: various fixes for Cygwin itself and ACL mounts944ab91fa

master
878 B21 linesraw
1function cygwin_nosymlinks --description \
2    "Return 0 if Cygwin fakes symlinks, return 1 otherwise"
3
4    switch (__fish_uname)
5        case "CYGWIN*"
6            # Cygwin has various ways of creating symlinks but they should
7            # all be recognized as such (with a few exceptions, which we do
8            # not support in testing, see
9            # https://cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks)
10            return 1
11        case "MSYS*"
12            # In addition to the standard Cygwin symlinks, MSYS2 also has
13            # `deepcopy` mode, which is the default, and does not create
14            # recognizable symlinks
15            # (https://www.msys2.org/docs/symlinks/)
16            not string match -q "*winsymlinks*" -- "$MSYS"
17            or string match -q "*winsymlinks:deepcopy*" -- "$MSYS"
18        case "*"
19            return 1
20    end
21end