0

I'm trying to get fish to recognize an absolute path, either when changing directories or when giving an input to a program. I'm used to typing an absolute path as "C:/..." but in fish the only way I can get it to recognize an absolute path is to write instead "//owner-pc/...". If I do this when I'm changing directories, C:/ is replaced by /o/ thereafter. What is going on here - How are paths represented in fish?

In particular, how do I refer to a file on a different drive D:/ by its absolute path? What if I want to cd to a directory on a different drive?

(I am using Fish on Windows, with Cygwin.)

  • 1
    Fish on Windows? Under Cygwin, perhaps? – Dan D. Aug 26 '14 at 18:24
  • Yes. I modified the question. – Holden Lee Aug 27 '14 at 8:02
  • You'll want to investigate the cygpath utility – glenn jackman Aug 27 '14 at 13:28
0

The cygwin mount command (provided you haven't made any changes) should display the absolute paths to your local drives. fish should be able to properly reference the defaults like /cygdrive/d.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.