fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
944ab91fa
master
1function cygwin_nosymlinks --description\ 2"Return 0 if Cygwin fakes symlinks, return 1 otherwise" 3 4switch ( __fish_uname ) 5case "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) 10return 1 11case "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/) 16not string match -q"*winsymlinks*" --" $MSYS " 17or string match -q"*winsymlinks:deepcopy*" --" $MSYS " 18case "*" 19return 1 20end 21end