Questions tagged [cygpath]

For issues relating to the cygpath path converter utility.

The cygpath program is a utility to convert and native filenames to -style pathnames and vice versa.

30 questions
1
vote
1 answer

Who handles the paths in Cygwin

I am curious to find out who handles the paths in cygwin. For instance if I do the following, it works: cd C:\ However when I do: $ pwd /cygdrive/c Who is responsible for the discrepancy here? The reason I am curious is that "cd C:" among'st other…
Har
  • 3,727
  • 10
  • 41
  • 75
1
vote
1 answer

Can cygwin ls show ACLs without providing the DOS path to file?

The commands cd c:/p4 ls -ld . c:/p4 /cygdrive/c/p4 shows d---------+ 1 jgunter Domain Users 0 Apr 27 18:41 . d---------+ 1 jgunter Domain Users ? 0 Apr 27 18:41 /cygdrive/c/p4 drwxr-xr-x 1 jgunter Domain Users ? 0 Apr 27…
Jay Gunter
  • 13
  • 3
1
vote
1 answer

pig installation in windows using cygwin

I am using cygwin in windows xp to install pig-0.11.1.I extracted and placed my pig_home folder in user directory of cygwin.When i try commanding in prompt ./pig help, it shows me the following error. which: no hadoop in…
user2082765
  • 41
  • 1
  • 1
  • 4
1
vote
2 answers

Open Cygwin on a path passed as the first parameter to bash.exe

I'm going mad trying to achieve this. I read a lot of questions over Stack Overflow, but they didn't work. I'm trying to open a tab on console2 that opens Cygwin on the path passed as a parameter to it. For cmd.exe, is quite easy: cmd.exe %1 For…
Francesco Belladonna
  • 11,361
  • 12
  • 77
  • 147
0
votes
2 answers

cannot pass dos path and to preserve it in cygwin command line

I have problems passign windows path to an non-Cygwin application in Cygwin app 'd:\path\file' That application gives an error of /d:/path/file does not exist. How stop Cygwin with modifying the input argument in this case? It prepends / to the…
Aftershock
  • 5,205
  • 4
  • 51
  • 64
0
votes
0 answers

cygpath executed in makefile changes the path incorrectly

i have a make target in which i read the current path with PWD and extend it with a subdirectory. I want to convert the whole path from a UNIX format to a Windows format. Makefile Code: ... absolute_path_pearl_src="$${PWD}/$${file}";…
0
votes
0 answers

Cygpath IF Error Handling

How do you trap / test the return from cygpath in a script. That is, if you want to convert a windows directory but you don't know if it exists yet, you can't use -d on it (since you don't know if it exists and it's not in a windows format).…
GaryFurash
  • 801
  • 1
  • 8
  • 10
0
votes
2 answers

How to get rid of cygwin's path prefix

In cygwin, in order to remove /cygdrive prefix in the paths, I did a mount like this - mount -c / after restarting cygwin, when I say pwd - it gives me something like - /c/Work/shared/imply-1.1.1 [actually per windows…
jagamot
  • 5,348
  • 18
  • 59
  • 96
0
votes
1 answer

How to get cygpath to take input from file

I apologize in advance for this question, but I am really stuck right now, and I'm just praying that someone out there can help me. I have a series of c files I need to inspect one at a time in about 100 subdirectories, each named balance.d,…
Ben I.
  • 1,065
  • 1
  • 13
  • 29
0
votes
1 answer

CYGPATH does not get invoked from makefile

I am working on an automatic build and continuous integration environment for embedded C codebase. I am using Keil's Real View Compiler (windows executable) as the cross compiler, and am building the entire continuous integration environment using…
adkaizer7
  • 41
  • 3
0
votes
2 answers

Cygpath troubleshooting with Jenkins and Windows slave

I have a remote Windows computer with Cygwin 1.7.35 installed on it and we use it as a slave for CI testing with Jenkins. I created a Jenkins job to build a Maven project (after cloning from repository). The Jenkins contains Cygpath 1.5 plugin and…
Pe Ka
  • 1
  • 5
0
votes
1 answer

Windows batches in Cygwin with spaces in path and arguments

Consider this dummy Windows batch script: echo %1 Supposed just to echo to the terminal its first argument. Assume its path in resp. Windows, Cygwin style is: c:\test\win.bat /cygdrive/c/test/win.bat From Cygwin bash: $ c:\test\win.bat …
antonio
  • 10,629
  • 13
  • 68
  • 136
0
votes
1 answer

maven, ant, or gradle plugin to execute cygwin cygpath?

Does anyone know of a maven, ant, or gradle plugin that supports invoking cygpath? The cygpath utilities knows how to convert Windows filesystem paths (c:\dev) to cygwin/unix style file paths (/cygdrive/c/dev). I've searched the internet but didn't…
buzz3791
  • 1,683
  • 2
  • 20
  • 38
0
votes
2 answers

Jenkins, cygpath plugin does not convert paths

I'm using Jenkins with Cygpath plugin installed. I have some scripts that is working in Cygwin bash without problems #!/bin/bash pwd SCRIPTFILENAME=$(readlink -f $0) SCRIPTPATH=`dirname $SCRIPTFILENAME` cd $SCRIPTPATH (python…
0
votes
1 answer

Cygwin - export vs. SET

I have written a little bash script to switch the JAVA Version in Cygwin: http://pjsdev.blogspot.de/2013/02/cygwin-switching-java-version.html As you can see I am using "export" to set the ENV & PATH. This works fine in command line tools running…
Jens Peters
  • 2,075
  • 1
  • 22
  • 30
1
2