zsh-workers
 help / color / mirror / code / Atom feed
From: <agkozak@gmail.com>
To: <zsh-workers@zsh.org>
Subject: Cygwin/MSYS2: Trouble converting relative paths from / using :a or :A
Date: Fri, 12 Nov 2021 11:19:21 -0800	[thread overview]
Message-ID: <01fa01d7d7fa$33567960$9a036c20$@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 406 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 2696 bytes --]

             reply	other threads:[~2021-11-12 19:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-12 19:19 agkozak [this message]
2021-11-15  8:44 ` Jun T
2021-11-17  9:39   ` Jun T
2021-12-01  4:58     ` Daniel Shahaf
2021-12-05 14:10       ` Jun. T

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='01fa01d7d7fa$33567960$9a036c20$@gmail.com' \
    --to=agkozak@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).