cygwin

Git core.safecrlf different behavior on files with same line endings

北慕城南 提交于 2019-12-20 08:45:34
问题 I have Windows machine with VS project and I use both Visual Studio and tools from Cygwin environment including Git. Sometimes I get different line endings in files after editing. I want simple solution to check files' line ending consistency before they go to the repo. Git's core.safecrlf is the right thing I suppose. Now I have a strange behavior: Files A and B with following parameters: $file A A: HTML document, UTF-8 Unicode text, with CRLF line terminators $file B B: HTML document, UTF-8

gcc failed with install Python MySQL libraries on Cygwin

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 06:39:29
问题 I want to install either oursql or MySQLdb on a Cygwin box. (Pywikibot can work with either.) Unfortunately both easy_install as well as pip fail at installing both. easy_install-2.7 oursql Searching for oursql Reading https://pypi.python.org/simple/oursql/ Reading http://launchpad.net/oursql Best match: oursql 0.9.3.1 Downloading https://pypi.python.org/packages/source/o/oursql/oursql-0.9.3.1.zip#md5=ad599ea2d95fc695df7195e9801b45c2 Processing oursql-0.9.3.1.zip Writing /tmp/easy_install

Symfony 2.2.1 rsync deploy - not working on remote server

青春壹個敷衍的年華 提交于 2019-12-20 05:15:19
问题 I'm very new to Symfony and I'm trying to automate the deploy process with rsync, while keeping both the local and remote installs of Symfony working. What I've done so far: installed Cygwin on my local machine (Windows 7+Apache2.2+PHP 5.3+MySQL 5.1) done a basic Symfony install on my local machine from shell with the command php composer.phar create-project symfony/framework-standard-edition [path]/ 2.2.1 set up a remote LAMP Ubuntu server with php-fpm (fastcgi) set up two different

Echo output is different from expected formatted output

爷,独闯天下 提交于 2019-12-20 04:46:10
问题 I'm using the following formatting for echo It should output text that is both bold and underlined, but instead of making it bold it's giving a 'brighter' variant of color and takes the underlined code (4) as if it was cyan, resulting in Light Cyan text. I'm using Cygwin's Bash on a windows 7 PC. Edit: I've found a link that appears relevant to my case but I'm not sure how it applies since they're taking about the windows 10 update bash while I'm using Cygwin's enter link description here 回答1

mkfifo causes terminal to hang?

梦想与她 提交于 2019-12-20 04:04:17
问题 Does mkfifo simply not work with Cygwin? A simple set of commands such as $ mkfifo my_pipe $ echo "1234" > my_pipe just causes the terminal to sit forever with the cursor blinking. Am I "doing it wrong"? 回答1: No, you're not doing anything wrong with either of those commands, it's just your expectations are a little off. What you're missing is something at the other end of that pipe, reading that data. This apparent hanging happens in Linux as well, so it's not a CygWin problem (or any sort of

maven error when running in cygwin?

耗尽温柔 提交于 2019-12-20 03:22:15
问题 I have cygwin in Windows 7 and downloaded and installed maven "binaries" and have the following set export JAVA_HOME=/cygdrive/c/java/jdk1.7.0_11 export MAVEN_HOME=/usr/apache-maven-3.0.5 export M2_HOME=/home/MyUser/.m2 export PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH $ which java /cygdrive/c/java/jdk1.7.0_11/bin/java $ java -version java version "1.7.0_11" Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode) $ which mvn /usr

x86-64 segmentation fault saving stack pointer

落花浮王杯 提交于 2019-12-20 03:17:45
问题 I am currently following along with this tutorial, but I'm not a student of that school. GDB gives me a segmentation fault in thread_start on the line: movq %rsp, (%rdi) # save sp in old thread's tcb Here's additional info when I backtrace: #0 thread_start () at thread_start.s:16 #1 0x0000000180219e83 in _cygtls::remove(unsigned int)::__PRETTY_FUNCTION__ () from /usr/bin/cygwin1.dll #2 0x00000000ffffcc6b in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) Being a

Cygwin shows UTC time instead of local time

我的未来我决定 提交于 2019-12-20 02:33:03
问题 Today I noticed my cygwin shell is showing the wrong time. It is actually UTC time while it is supposed to be my local time. As soon as I unset the TZ variable it shows the local time. Here are some commands which show the situation. I am running windows 10. My windows has UTC-5:00 timezone and its time is OK.I do not remember when did it start to be like this but my colleagues computers are fine. Has anyone seen this before ? $ date Mon, Oct 31, 2016 9:13:38 PM $ date --utc Mon, Oct 31, 2016

Weird behavior of BASH glob/regex ranges

天大地大妈咪最大 提交于 2019-12-20 02:29:06
问题 I'm seeing BASH bracket ranges (e.g. [A-Z]) behaving in an unexpected way. Is there's an explanation for such behavior, or it is a bug? Let's say I have a variable, from which I want to strip all uppercase letters: $ var='ABCDabcd0123' $ echo "${var//[A-Z]/}" The result I get is this: a0123 If I do it with sed , I get an expected result: $ echo "${var}" | sed 's/[A-Z]//g' abcd0123 The same seems to be the case for BASH built-in regex match: $ [[ a =~ [A-Z] ]] ; echo $? 1 $ [[ b =~ [A-Z] ]] ;

'X' does not appear to be a git repository (I'm sure the path is correct)

China☆狼群 提交于 2019-12-19 21:55:56
问题 I want to be able to work from home by cloning of the git repository that exists on my work desktop to my laptop. Both systems are running msysgit within a cygwin shell. Both systems are using cygwin's ssh. If I ssh to that server, I can see the repository at the path /cygdrive/d/Projects/TheProject $ ssh TheDesktop MyUser@TheDesktop's password: ...I enter the password, see the MOTD, and I'm in... $ cd /cygdrive/d/Projects/TheProject ...See the git repository here. Even see the current branch