FAQ Database Discussion Community


Why does Cygwin repeat every command I type?

unix,directory,cygwin
Every time I type a command into cygwin, it repeats it, with a plus sign before it. It's not the biggest deal but it just bothers me. It looks like this: [email protected] /cygdrive/c/Users/Julian/dev $ mkdir play + mkdir play [email protected] /cygdrive/c/Users/Julian/dev $ ls + ls autoHotKey gitp1 play TopCoder.jnlp [email protected]

How to invoke a command for each result?

linux,bash,mercurial,cygwin
I want to invoke a command for each result of the executed command. Particularly, I want to invoke hg diff <filename> for each result, returned by hg status. Is it possible to do with a single bash command? For instance, hg status returned: M project/pom.xml M project/api/pom.xml And I want...

Cygwin: cygstart * Not Opening All Files

bash,file,cygwin
One thing that I really don't like with Cygwin is when I have to open files one by one. I set up an alias of opening files (instead of cygstart, I use open). However, everytime I want to open up multiple files, say a pdf, it will only open the...

How can I find the first monday of current month using cygwin bash date utilty?

bash,cygwin
I need to know the first monday of the current month using Cygwin bash.

Regular expression find command cygwin?

regex,linux,unix,find,cygwin
I've never been able to get regular expressions in Cygwin to work for me. Here's some background info: -find (GNU findutils) 4.5.12 I have the following files in my directory: -rw-rwxr--+ 1 None 0 Jun 4 19:16 eiooo.txt -rw-rwxr--+ 1 None 0 Jun 4 19:20 g.py -rwxrwx---+ 1 None 96...

What is the meaning of environment variable !::=::\

bash,cygwin,environment-variables
I have found out my environment variables a strange line: $ env ... !::=::\ ... When I start a shell or run bash script, it is sometimes present, sometimes not. And when it is absent my bash calls to subshells $(...) require 3 escape backslashes instead of each 1. Any...

Cygwin std::enable_if parse error

c++,c++11,gcc,cygwin
I try to compile the following code under cygwin with gcc 4.9.2: #include <type_traits> template <template <typename...> class C, typename... Ts> class Foo { template <typename T> struct IsFoo : std::true_type {}; template<typename T> typename std::enable_if<IsFoo<T>::value>::type bar(T v); }; template <template <typename...> class C, typename... Ts> template <typename T> typename...

make with Cygwin

windows,make,cygwin
I am trying to set VTK on windows (did I say it was complicated?^^). I have successfully configured VTK with CMake and I am now trying to run make through cygwin. However when I go to the build directory and enter make all the terminal prints and does is: make...

Is there a way to go two directories back in cygwin (linux)?

terminal,cygwin,cd
I know that you can go back one directory in cygwin by using the dash (-). But, how do you go back more than one directory in your history? I've tried cd -- it doesn't seem to work. Thanks! This would be very very helpful. ...

perl -pi -e remove .bak automatically on cygwin

bash,perl,cygwin
Under Cygwin, perl -pi -e will always save .bak files. I don't exactly understand why, but I want to get rid of it. I usually use Perl pie like this: git ls-files | egrep '[.](asm|c|h|inc)' | xargs perl -pi -e 's/foo/bar/' Then I need to execute this: git ls-files |...

this pointer gets set to null when entering function call stack - happening with Google Test under gdb

c++11,gdb,cygwin,googletest,g++4.8
(gdb) list 95, 195 95 int BishopArranger::FillAndRecurse(int cursor) 96 { 97 if (cursor == _solutionVec.size()) 98 { 99 return 1; 100 } 101 102 unordered_set<tuple<int, int>> candidates = GetCandidates(cursor); //kn 103 if (candidates.empty()) 104 { 105 return 0; 106 } 107 108 int sum = 0; 109 for (unordered_set<tuple<int, int>>::iterator...

How to install CMake on Cygwin?

windows,cmake,cygwin,clion
i have some difficulties to use Cygwin. I need that compiler to use CLion IDE by Netbrains. Can you explain me how to install CMake by the cygwin-terminal ? Thank you ..

Set size of a cygwin terminal window

perl,terminal,cygwin,ansi-escape,mintty
I have a small perl script, which is executed in a cygwin terminal and prints out a formatted table. On Default window size, cygwin will insert an line break if the text gets too long and thereby destroy the format of my table. Is there a way from my perl...

Why is the size of files compiled by gnu gcc and cygwin gcc different?

c++,gcc,cygwin,codeblocks,gnu
This is just a small "Hello World" program, which when compiled using Cygwin GCC and GNU GCC is different in size. #include <iostream> main(){ cout<<"Hello World";} The cygwin version is only 60.7 Kb, while for GNU it is 978 Kb. Why is this so, if they both use GCC only?...

Bash alias doesn't work in cygwin

bash,cygwin,windows-8.1,alias
Can someone please explain to me how to set up bash aliases? I am using cygwin on windows 8. I added alias my_first_alias='git status' at the end of /.bashrc file. Typing my_first_alias into cygwin results in -bash: my_first_alias: command not found. Trying to restart cygwin, running . .bashrc doesn't help...

C++: How to include Paillier.h in a header file

c++,cygwin
I have a C++ class key_gen that has some data members of type paillier_ prvkey_t. The problem is that I cannot include paillier library (writen in c) in my header file say key_gen.h. But I can include it in my key_gen.cpp using extern "C"{ #include<paillier.h> } I'm using cygwin to...

Startup is really slow for all cygwin applications

windows,cygwin,windows-8.1
Start of any cygwin application takes more than a minute on Windows 8.1 x64. It doesn't matter, either I'm starting mintty from shortcut or cygwin.bat or ls.exe or bash.exe from bin folder. Each of them will be slow. After bash or mintty started they working fairly quick: $ time for...

Where is the cygwin setup.exe binary when installed with the Chocolatey package manager?

windows,cygwin,chocolatey
I am working on a system automation process which will use Powershell to install Chocolatey to install Cygwin. I would subsequently like to install the prerequisites for apt-cyg, which will allow me to programatically install packages from cygwin. However, I do not know where the setup.exe binary for Cygwin is...

Cygwin commands from CMD are slow; from bash are fast

windows,cygwin
I have been using Cygwin commands from my Windows CMD prompt for several months without problems. Within the past few days, every time I call a Cygwin command (ls for example), the command takes several seconds to "load" before it actually runs. If I try the same command from within...

Error in Dired sorting on Windows (with Cygwin Emacs)

windows,emacs,cygwin,dired
In a Cygwin Emacs on Windows, in Dired, if I try to sort by time (for example), I get the error: insert-directory: Listing directory failed but `access-file' worked In a Windows Emacs binary on Windows, I do not have any problem, but Emacs uses its own implementation of ls IIUC....

Formatting Errors with tail

linux,bash,unicode,cygwin,tail
How can I correctly parse this file through tail, without formatting errors? I am using tail within cygwin to parse the last ten lines of two files. One file parses through correctly, the other contains a space between every character. $ tail file2.txt -n 4 22/06/2015 12:28 - Decompressing and...

How to install MinGW-w64 and MSYS2?

cygwin,mingw,msys,mingw-w64,msys2
I am trying to build some open source library. I need package management system to easily download the dependencies. At first I am using MinGW+MSYS. But the included packages are limited. Someone told me to use MinGW-w64 + MSYS2. I downloaded the mingw-w64-install from here. When running, it reports the...

undefined reference to `WinMain' : When using Cygwin, SDL2 and Netbeans

c++,netbeans,linker,cygwin,sdl-2
any help here would be appreciated. Ive really racked my brains at this, sooo. I have installed cygwin, and Netbeans and have been successfully deving, compiling and running a small SDL-1.2 windows game with no problems. The problem has come now that I have installed SDL2 and am trying to...

Getting the creation date of a file on Cygwin

shell,date,cygwin,stat
I'm trying to get the creation date of a file using console commands. I've managed to use this: stat -c "%w" file which outputs the date and time: 2015-05-01 09:33:22.503525000 -0400 But I'd like to extract only the date (without the time) from the result. Is there a way to...

Using --check on a md5sum command generated checksum file is failing

powershell,cygwin,md5sum
I'm encountering an error when I try and run md5sum -c on a checksum file I generated. I should mention that I'm running this from PowerShell (as a script will be running this eventually) and this is the cygwin version of md5sum. I have a test file, jira_defect.txt and I've...

What could be delaying the printf output of my C program?

c,gcc,cygwin
A simplified version of my code is: #include "externalstuff.h" void main(){ printf("Hello?"); /* make calls to externalstuff .... */ } I did not write externalstuff.h, so I'm not sure what is going on there exactly. The calls to externalstuff take some time to execute. I would expect that "Hello?" would...

MY computer can't find my makefile on Cygwin (windows)

makefile,cygwin
I'm trying to run the make utility of cygwin, and it keeps telling me that "***No targets specified and no Makefile found. Stop" I don't get it. This is my makefile if it helps, it's called Makefile.mak: TestSet.out: TestSet.o Set.o g++ -o TestSet.out TestSet.o Set.o TestSet.o: TestSet.cpp Set.h SetInterface.h g++...

Compile & link static library calling winapi under cygwin

c,windows,winapi,cygwin
I have a project in C which I am porting to from unix/linux to Windows/Cygwin (using autotools). I need to call some winapi functions. These functions require inclusion of some windows headers. But when I specify those includes a lot of errors caused by redefinition of some structs or functions...

Existing GIT Repos over Samba don't work from Cygwin

git,cygwin,samba
I have a set of git repos on a Samba server which it seems I can no longer use from one of the Cygwin installations I've been using them from. I have been using this same server for a few years without touching its OS at all. I did however...

Git P4 under Cygwin: Submit fails with “Patch does not apply”

python,git,cygwin,git-p4
I'm attempting to use git-p4 under Cygwin. The "clone" and "rebase" parts of the workflow appear to be working correctly, but I am unable to "submit". I'm guessing it may have something to do with a line-ending convention. I've looked at this git-p4 issue and its linked items, but manipulations...

include throws No such file or directory

c++,netbeans,directory,g++,cygwin
#include<apis/api1/api.h> throws No such file or directory i even tried moving api.h and api.cc to the main project directory and using #include<api.h> does the same thing even though it is in the exact same directory that the other classes use i tried adding /apis/api1 to the compiler search path that...

Fortran error: Program received signal SIGSEGV: Segmentation fault - invalid memory reference

cygwin,fortran
I'm try to run an ocean temperature model for 25 years using the explicit method (parabolic differential equation). If I run for a year a = 3600 or five years a = 18000 it works fine. However, when I run it for 25 years a = 90000 it crashes. a...

Run and compile java code in cygwin

java,cygwin
I just installed cygwin and I am wondering how do I compile and run my java code through cygwin? My java code is at my desktop saved in a file named Java. ...

cap command not found [Cygwin + Capistrano]

ruby-on-rails,gem,rubygems,cygwin,capistrano
I've installed ruby, rubygems and rails through Cygwin setup. Then I've installed a gem: gem install capistrano --verbose No problem here. But when I try to run cap command, Cygwin tells me:cap: command not found When I execute in ./bin/cap it works: $ ./bin/cap Stage not set, please call something...

Not sure what's wrong with my logic for my snake game?

c,graphics,console,cygwin
For reference, here is the link to my assignment (the course is a C language course): Snake The mouth is supposed to be "<", ">", "v", or "^", depending on the direction, and the body segments are supposed to be "*". So first of all, my up and down arrow...

Bash subshell for setting SHELLOPTS in a script

bash,cygwin,subshell
This question is not cygwin specific. However, in the cygwin mail archive https://cygwin.com/ml/cygwin-announce/2010-08/msg00015.html are various instructions for setting the cygwin specific igncr shellopt variable and one of them is the instruction: 4a. For a single affected script, add this line just after the she-bang: ~ (set -o igncr) 2>/dev/null &&...

ARM GCC with Cygwin on Windows 8.1 : fatal error: no input file

c,linux,gcc,cygwin
I am newbie for Linux and build systems and I am trying to move code base from Linux to Windows. I am getting some issues for build. I have installed cygwin arm-none-eabi-gcc from https://launchpad.net/gcc-arm-embedded and when I build my application, I am getting following error : arm-none-eabi-gcc.exe: error: /cygdrive/d/developments/RIOT/examples/ipc_pingpong/main.c: No...

Issue while navigating to a directory “C/Program Files (x86)” with cygwin?

shell,cygwin
I am trying to navigate to this below path in cygwin, C/Program Files (x86)/temp/lfc/utilities but unfortunately, it shows the below error $ cd C/Program Files (x86)/temp/lfc/utilities bash: syntax error near unexpected token `(' Could you please let me know, what is wrong here.. ...

Assign a Variable in bash login shell

bash,unix,escaping,cygwin
i am trying to do this from a Windows command prompt. C:\cygwin64\bin\bash --login -c "$var="<hallo>" && echo "$var"" and i get error : The system cannot find the file specified. but this works: C:\cygwin64\bin\bash --login -c "var="hello" && echo "$hello"" The login shell seems to cause the problem when it...

Bash iterating through files gives odd results when no files

bash,cygwin
I'm trying to iterate through all zip files in a bash script (I'm using Cygwin, but I kind of doubt this is a bug with Cygwin). It looks like this right now: for z in *.zip do echo $z done which works well when there are zip files in the...

Difference between using “set” and not using set for variables? In Cygwin.

variables,cygwin,environment-variables
I don’t understand the difference between: set youtube=’https://youtube.com’ and youtube=’https://youtube.com’ With the second one, I’m able to use it in the middle of a command, such as: cygstart $youtube and that works. Why and how are these different? They both set variables? And, when I don't use the word "set"...

How do I compile and link multiple files from the command line?

c++,cygwin
I used to use visual studio as a compiler for C++. I have been recently using g++ in cygwin. My problem is I donot know how to use cygwin for inheritance. The code below is just for illustration, to make my question more clearer. Base class: // A.h: class A{...

Bash permission denied in cygwin

linux,bash,cygwin
I have a directory: drw-rwxrw-+ 1 username Domain Users 0 Feb 11 09:32 webapp But when I try to enter this one I get -bash: cd: /cygdrive/c/dp-project/.../web-app Permission denied What's wrong? I setted all permissions to all users....

Changing the Cygwin environment variable to 'perl' [closed]

perl,cygwin
To execute Perl, I use /cygdrive/c/Perl64/bin/perl.exe Is there a way to replace that whole line with just perl?...

Linux box, counting files each subfolder in directory

linux,bash,cygwin
I already have this line for Linux box. find . -type f -name '*.txt' -exec ls -l {} \; It's getting all the TXT files in directory. But what I can't do and what I want to do is, to read all the .txt files on subfolder in one directory....

Merge CSV files in multiple sub directories using Cygwin

csv,cygwin
I'm new to Cygwin and could really use some help. I have a root directory with multiple sub directories (all sub directories are on the same level, that is no sub-sub directories etc). Each sub directory contains several CSV files (same format, no headers). I'd like to merge the CSVs...

Visual Studio Make instead of GNU Make with Cygwin

make,cygwin,gnu-make
I'm still trying to build VTK on windows. I have installed Cygwin and I'm done configuring with CMake I think. However I'm facing the error that you can see on the screenshot below: the make command somehow tries to make through MS Visual Studio while I want to use the...

Getting gcloud to work in Cygwin Windows

python,windows,google-app-engine,cygwin
I am fairly new to programming. I have started app development on google app engine. I am trying to get the Google Cloud SDK to work with Cygwin 32 on Windows. I first ran the curl command to download the Google SDK files. Then I ran the install.py script and...

fprintf() present in a C .exe file called from MATLAB doesn't work

c,matlab,cygwin,printf
I'm calling a C executable compiled using Cygwin in MATLAB, using the unix() function. This works fine, and I can see the desired output on the MATLAB command window. However, there is an fprintf() inside the executable that is supposed to create and write to a text file which does...

Using alias in cygwin doesn't recognize?

bash,google-chrome,cygwin,alias,.bash-profile
I have the following alias: alias gmail='https://gmail.com' And, I try to execute it as follows in Cygwin: cygstart chrome gmail But, it treat "gmail" literally as the web address "gmail" and not the alias https://gmail.com Question: Why is it not using the alias? ...

porting std::wstring to gcc cygwin

c++,windows,gcc,cygwin
I am tryong to port a project written in Visual Studio 2010 from a Microsoft compiler to gcc Cygwin. My question is does gcc Cygwin or gcc support std::wstring ? Is there a work around for that ?

undefined reference to `__imp___gmpz_init', building GMP program on Cygwin

gcc,compiler-errors,cygwin,gmp
I'm trying to compile this simple GMP program on Cygwin: #include <gmp.h> int main(){ mpz_t i; mpz_init(i); } This is the command: gcc -lgmp test.c I get this error: /tmp/ccJpGa7K.o:test.c:(.text+0x17): undefined reference to `__imp___gmpz_init' /tmp/ccJpGa7K.o:test.c:(.text+0x17): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp___gmpz_init' collect2: error: ld returned 1 exit...

Cygwin: open a character device

cygwin
I need to open a kernel module created in Windows with a userland program compiled in Cygwin; from Windows I can open it by using CreateFile("\\\\.\\deviceName", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL) but in Cygwin if I try to use the open("//deviceName", O_RDWR); nothing happens; I've tried to...

How to add Cygwin package to installed git-scm?

git,cygwin
I have git installed with Cygwin on a Windows 7 machine (used git-scm). How do I add Cygwin packages (like openssh-server) to the existing install? I can't find instructions anywhere, or an option to modify the existing Cygwin install. Thanks....

How do I change the cursor in emacs for cygwin?

windows,emacs,cygwin
I've looked multiple times online and can't find how to change the cursor type in emacs for cygwin on Windows. I'm trying to get it to the block cursor instead of the thin line which I can never tell which window I'm in. I've seen stuff about editing the .emacs...

How to install and use NTL in cygwin

c++,cygwin,shared-libraries,ntl
The libraries that I've used so far require installation. So they generate xx.a file that can be included in the code in cygwin. However, NTL library for windows only requires to unzip the file. So I need to know how to use it in cygwin command line. I have done...

Where is git installed with cygwin?

cygwin,egit
I am going through the EGit user guide and it says I should point out the system wide configuration by telling Eclipse where Git is installed with Windows and then it says I should do the same if I am using Cygwin. I'm not sure where in my Cygwin folder...

cygwin support for C++11 in g++4.9.2

c++,c++11,cygwin
I am trying to test some C++11 code on Windows 7 under cygwin, and am getting compiling errors for functions that are defined starting with C++11, such as std::log2 and std::round. I am compiling with g++ -std=c++11 test.cpp, using gcc 4.9.2. Here is some minimal example that fails to compile:...

Building glibc for cross compiler fails on Cygwin

windows,gcc,cygwin,cross-compiling,glibc
I'm trying to build a cross-compiler toolchain under Cygwin on Windows so that I (or rather someone I'm helping out - I'd use Linux but Windows is much easier for many people) can compile sources targeting the MIPS architecture. I have a script which successfully builds a cross-compiler toolchain for...

Android NDK: Warning: There are no modules to build in this project

android,android-ndk,jni,cygwin
I'm new in NDK development and I'm currently facing a problem, when I try to invoke the ndk build tool from cygwin terminal: Android NDK: WARNING: There are no modules to build in this project! I’m under windows (x64) and I use the r10d (64-bit) NDK. I try to invoke...

The default git commit message is missing

git,cygwin
I have using cygwin on Windows 8.1 to run git and have editor = "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -nosession -noPlugin" in my .gitconfig file. Notepad++ comes up when I do a git commit command with no message but the file is empty. The default git commit message is missing so...

How to compile CppUTest in cygwin?

cygwin,cpputest
I've taken over a programming project from another programmer. This project uses a lot of unit tests to verify the code which I intend to continue using. I have no prior experience with unit testing (apart from some theoretical knowledge) so he wrote a very small guide for how to...

Using CMake with Eclipse CDT and Cygwin on Windows

cmake,cygwin,eclipse-cdt
For a new project we want to use CMake. We are using Eclipse CDT as IDE and Cygwin gcc. We generated the CMakeLists.txt and followed [this tutorial (option 2)][1]. When I try to run the described Make target to generate the Makefiles with CMake, which executes cmake -E chdir C:/projects/eclipse_ws/MyApp/Build/...

Keep being prompted to enter passphrase for .ssh/id_rsa

git,bash,ssh,cygwin
I followed the tutorial here to set up ssh for github in cygwin on Window 7. However, every time I do git push origin master, I keep being prompted the following: Enter passphrase for /cygdrive/c/Users/mynameis/.ssh/id_rsa: This is so annoying because it beats the purpose of setting up ssh in the...

Run the application multiple times with different arguments in one click

c,batch-file,cygwin,bulk
What I'm trying to do is run the same program multiple times in Cygwin but with different arguments passed to it. What I try to do is as follows ./ssltest.exe -3 -p STATIC_PORT STATIC_IP && ./ssltest.exe -p STATIC_PORT STATIC_IP && ./ssltest.exe -1 -p STATIC_PORT STATIC_IP && ./ssltest.exe -2 -p STATIC_PORT...

How to open a file using specific application in cygwin?

linux,windows,cygwin,default,notepad
I know that you can open programs in cygwin using cygstart. I also know that you can open files in a similar fashion. However, I would like to open a file using a specific program. For example, I want to open a text file using sublime and I try: cygstart...

notify_all_at_thread_exit doesn't exist in Cygwin GCC

multithreading,c++11,cygwin,condition-variable
When I try to build the following simple test program in 32-bit Cygwin with GCC version 4.9.2, I get an error saying: error: ‘notify_all_at_thread_exit’ is not a member of ‘std’ This makes me think that this specific method hasn't been ported to Cygwin. Does anyone know if I am either...

how set unix alias with current directory works on every path

unix,path,find,cygwin,alias
i have this alias that works on "/" directory but stops working when path changes alias exesh='chmod +x $(find . -maxdepth 1 -name '*.sh')' I am a newbie with Unix so any help is welcome *I'm using cygwin, if can be this the issue * Bash, on this problem, says...

How to capture event “down” “up” for a keystroke or a mouse button in C

c,linux,cygwin
I found numerous examples that use either X11 or linux/input.h unfortunately I am on Cygwin where linux/input.h does not exist. I would like a simple example that I can use to detect events such as: Key down Key up Or Mouse button down Mouse button up I would like to...

Laravel vagrant up errors

laravel,cygwin,install,vagrant
I am trying to setup Laravel homestead on a windows machine according to the documentation here: http://laravel.com/docs/5.0/homestead#installation-and-setup. However when I get to the 'Launch The Vagrant Box' step I get the following error when I try to 'vagrant up' from cmd: D:/Homestead/scripts/homestead.rb:4:in `configure': undefined method `[]' for false:FalseClass (NoMethodError) from...

Faulty compilation of string constant in ASM

assembly,cygwin,nasm
I'm writing a program to get the hashes of certain function-names in ASM. The function to fetch the string constants is the following: get_strings: call get_curr_addr pop esi add esi, 9 jmp str_return db "LoadLibraryA" db 0x00 This produces the following string constant in the bytecode (xxd output): ... 00000040:...

cygwin “Permission denied”

c,cygwin,file-permissions
Trying to launch a file ./cu/cu-check-regressions --help Get this: -bash: ./cu/cu-check-regressions: /usr/bin/python: bad interpreter: Permission denied Already changed permission in properties>security my account has full control over the folder. Tried running cygwin as Administrator did not work as well. Googled the issue for the past two hours....

C program compiled in cygwin with make: “cannot execute binary file”

c++,c,gcc,make,cygwin
I am trying to run a code by someone which can be perfectly "make"ed in linux and it works fine. When I "make" in cygwin and run it I get the "cannot execute binary file" error. When I "file" the executable it says: $ file kmeans kmeans: ELF 64-bit LSB...

rsync, cygwin and shell file windows

windows,shell,cygwin,rsync
Using Cygwin I can use rysnc as expected, but using the same rysnc command from a shell file I see: 'rsync: command not found' Script is: #!/bin/sh echo 'Moving local media to dev server' rysnc -vruz --progress -chmod=0755 --exclude catalog/product/cache media [email protected]:/var/sites/folder/folder execution: $ ./script.sh ...

wget not displaying all website data

html,shell,cygwin,wget
Input: wget -qO- http://runescape.com/community | grep -i playerCount Output: <li class="header-top__right-option"><strong id="playerCount">0</strong> Online</li> In browser: Using cygwin..I am trying to use wget to pull a number out of a webpage. As shown in the example above, the playerCount is 0. If you actually load the webpage up and look at...

build error: no toolchain with host-setup.sh ndk-r3 with cygwin 1.7.35

android,android-ndk,cygwin
I am trying to run $ ./build/host-setup.sh but it throws the following error ./build/core/ndk-common.sh: line 44: [: too many arguments ./build/core/ndk-common.sh: line 49: [: too many arguments Checking host development environment. NDK Root : /home/NITISH NIHAR DORA/android-ndk-r3 GNU Make : make (version 4.1) Awk : awk Platform : windows Generate...

Why do I get different results in git bash (msysgit) and git in cygwin?

git,cygwin
I alyways used the git bash but now I have to change to cygwin because I need wget and other things, so I thought I could use the builtin git as well since it is newer. The git bash is version 1.9.4-preview, the one in cygwin is version 2.1.4. I...

Run Jenkins' Cygwin script as user

bash,jenkins,cygwin
I have Jenkins running on Windows, and I have a build that works fine under CygWin bash from the CygWin terminal, so I now want to automate it. However, using this script: #!C:\cygwin\bin\bash.exe whoami make The system reports me as nt authority\system, not the ken that I get when using...

python-magic WindowsError: access violation writing 0x00000000

python-2.7,cygwin,ctypes,python-magic
I installed python-magic (0.4.6) on my Win 7 64bit using pip. I then installed cygwin 1.7.33-2 to provide the needed dlls and created a copy of cygmagic-1.dll named magic1.dll (see When I run the Python 2.7.6 32bit shell, the "import magic" works fine. However, a magic.from_file('c:\user\username\sample.txt') gives me a Traceback...

Differences between compilers in Cygwin

cygwin
In Cygwin a search for g++ shows: gcc-g++ mingw-gcc-g++ mingw64-x86_64-gcc-g++ What are the differences between these?...

Cygwin OpenSSH server does not respond after first command from PHP (Using phpseclib)

ssh,cygwin,openssh,phpseclib,ssh2-exec
I got cygwin and sshd working fine. And there are no issues at all when using putty. It responds as expected even for multiple commands. But when using phpseclib , A response is received only for the first command. Subsequent commands are giving a blank reply. This is the script...