Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Cygwin/MSYS2: Trouble converting relative paths from / using :a or :A



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



Messages sorted by: Reverse Date, Date, Thread, Author