cygwin

git & Cygwin - trailing whitespace causes "not uptodate"

Git on Windows w/ Cygwin is fraught with dangers. However there's one that's really starting to bug me. It's related to the core.autocrlf=true behaviour. After spending a week trawling the 'net it became clear that the problems you'll encounter are less bad with this set. However, if a file has a line with trailing whitespace on the end...

How to use cp from stdin?

Note: # cat /tmp/foo - regular file /lib/a.lib /lib/b.lib /lib/c.lib /lib/d.lib cat /tmp/foo | xargs cp /tmp/fred cp: target /lib/d.lib is not a directory ...

Why does configure.sh think win32 is Unix?

I'm trying to build an application from source in windows that requires some Unix tools. I think it's the apparently standard ./configure; make; make install (there's no INSTALL file). First I tried MinGW but got confused that there was no bash, autoconf, m4, or automake exes in \bin. I'm sure I missed something obvious but I installed C...

Scheduled sftp job fails

I have Cygwin+OpenSSH installed on Windows XP workstation. Simple SFTP process (batch file) runs fine when launched from the Command Prompt and fails when launched by a Scheduler from Novell Desktop Management. Scheduled job uses exactly the same batch file and runs as Interactive User impersonation. WhoAmI embedded in the batch file ...

How to use rails within cygwin

I have installed rails using rubystack and set env path, so I can use it in cmd. When I try to use it with cygwin I doesn't work (it shouldn't), how to make this rails work on both windows and cygwin env or I have to install it separately. Thanks ...

Creating a Cygwin emacs macro

I have been researching how to get Cygwin to work under emacs. I have it working, but now I want to write a macro that will do the following: Launch by typing M-x cygwin Have the script stored in some obvious place (probably my .emacs file) M-x shell Rename the buffer to cygwin (or cygwin1, cygwin2, cygwin3, ... if cygwin exists) prob...

Best way to setup a Windows build environment for C/C++

Basically I want to compile C/C++ using the GCC on Windows. The two competing platforms, as i see it, are MinGW and Cygwin. Each have their own benifits and limitations. MinGW compiles for Windows, whereas Cygwin needs the cygwin .dll. However installing libraries on MinGW is difficult, whereas on cygwin it's easier, using the setup.exe ...

Cygwin Shell Scripts

I'm not running cygwin, but I have the cygwin ash.exe in my %PATH% as sh.exe and have cygwin1.dll in %PATH% I am trying to invoke some shell scripts (named with no extension) using sh -c shell-script-name but I get a "permission denied" error. If I run sh and run ./script I also get this error. I have a proper #!/bin/sh shebang line ...

Convert a Cygwin PID to a Windows PID

I have a process I spawn with a Cygwin shell script, and I am unable to kill it with the kill command. Even with the Cygwin kill with the -f option, I get this message: kill: couldn't open pid 1234 I would like to try to kill it with PsKill, but I cannot find a way to convert the Cygwin PID to a Windows PID that PsKill will understand...

Cygwin/Git/Gitosis unable to push new repository

I've recently set up cygwin, git, and gitosis on my Windows Server 2003 box and am having troubles. I've followed just about every tutorial I can find to the letter, and have confirmed that my git account's authorized_keys table is getting updated when I push the gitosis-admin repository. I seem to be stuck, however, when it comes to c...

Java parser for Windows shortcut (.lnk) created by cygwin

Hi all, Following a previous discussion on lnk files parsing in java (http://stackoverflow.com/questions/309495/windows-shortcut-lnk-parser-in-java/1700377), I've tested all solutions proposed and no one works with my lnk files, created by cygwin when I untar an archive containing sym links created on a linux box. I got a java.lang.Arr...

How do I set/clear the Windows archive bit with cygwin's find/chmod?

Yes, I know, the archive bit is evil. That being said, is there support for querying it with 'find', and modifying it with 'chmod'? My googling has turned up nothing...... ...

Emacs: Tab completion of file name appends an extra i:\cygwin

I am facing some strange behavior with file-name completion in emacs. C-x C-f to find file opens up the minibuffer with i:/cygwin/home/rrajagop/StockScreener/working_copy/master_repo/stock_screener/. Hitting a TAB makes it i:/cygwini:/cygwin/home/rrajagop/StockScreener/working_copy/master_repo/stock_screener/. A couple of interesting thi...

Shell script variables - command not found

I have a shell script that will let me access global variables inside the script, but when I try to create my own, it responds with: command not found. #!/bin/bash J = 4 FACE_NAME = "eig$J.face" USER_DB_NAME = "base$J.user" When I run the above script I get: ./test1.sh line 2: J: command not found ./test1.sh line 3: FACE_NAME: comman...

Cygwin offers to display 4543 possibilities; what does it mean?

A new kitten in the household has the habit of visiting me while I work, and it is able to make my system do things with a few pawpresses that I didn't know were possible. Windows change their stacking order, browsers magnify parts of previously-closed pages ... Just now, though, while I was working in vim in a window in front of my cyg...

how to launch x programs running in mac ox from cygwin running on windows-

Hi everybody, running cygwin on windows I can connect and execute X applications with no further problems just accessing the remote linux box as ssh -Y -l user machine. If I do the same against a mac box and try to open ie. firefox as: open -a firefox returns the following: LSOpenURLsWithRole() failed for the application /Applications/Fi...

How do I turn the beep slash bell off in cygwin?

The system beep/bell happens frequently (ie, when I type a few letters then type tab to autocomplete when there are a few options). How can I turn this off? I googled it and tried: set bell-style none (the command went through but nothing changed) and setterm -blength 0 (got a bash command not found) Thanks! ...

Linux Development C/C++/bash/python on windows-7.

Before resorting to stackoverflow, i have spend a lot of times looking for the solutions. I have been a linux-user/developer for few years, now shifting to windows-7. I am looking for seting-up a development environment (mainly c/c++/bash/python) on my windows machine. Solutions i tired - VirtuaBox latest, with grml-medium (very ligh...

Implemeting new facets in DLL under GCC/MingW

Hello I have problem with using std::locale::facets from DLL. It seems that locale "id" is not shared between DLL and the source. has_facet reports that "facet exists" on different kind of facet. And facet ids reported incorrectly. In the below example, foo::id and bar::id are seems to be the same and the has_facet reports true on uni...

Unable to chdir() on Git/Cygwin

Hi all, I installed Git via Cygwin on Windows Server. It works out very well. However there's a small issue that when I clone a repo use the command as following: $git clone git@myserver:project.git I always got the "unable to chdir()" message but if I typed in the full path then it works $git clone git@myserver:/home/git/repositori...