In Cygwin or MSYS2, if I execute cd / foo=bin echo ${foo:a} echo ${foo:A} echo ${foo:P} for the :a modifier I get //bin for the :A modifier I get a long pause, followed by //bin (Is it trying to access a network share?) But for the :P modifier I get the expected /bin The //bin paths are unusable ("No such file or directory"). Alex