At work, I use Cygwin a lot because it offers me a small oasis in the vast desert of Windows. I inevitably end up running some non-Cygwin-related programs through the bash shell, such as build scripts (created batch files inside) and Subversion CLI binaries (I have Windows installed). 99% of the time, I have no problem using this setting. The other 1%, however, cause a strange problem:
With build scripts and SVNs, most of the time the input key is interpreted correctly. For example, I will start creating a script database and it will offer me the server name. I type "localhost" and hit enter. Everything is fine. Then it goes to the end if there are errors, and prints things with more . Not a single key that I press is recognized more . I have Ctrl-C.
Similarly, if I do a Subversion update, everything is fine fine. However, when interactive conflict resolution occurs, I usually type “tf” for “theirs-full” and press enter, but nothing happens. I have to remove Ctrl-C from it and restart the update using merge or use TortoiseSVN on Windows to do this.
Any idea why Cygwin does not seem to accidentally pass an input key into programs? I thought this might have something to do with the end of a Unix vs Windows style line, so I tried to enter these characters manually, but that doesn't seem to matter. Thank.
Edit : I just happened to this again, and I understood something. SVN requested a password. I typed in a password that it echoed on the screen (bad) and hit enter ... nothing. The hit is entered several more times, the cursor moves, but nothing happens. I press Ctrl-C and it brings me back to bash, which then says: “bash: [my password]: command not found”, followed by a series of new requests equal to the number of times I press the enter key, So, what happened, the input never got into SVN, but bash somehow read it after SVN came out. I thought it could help someone figure out what was going on.
windows cygwin
rmeador Oct 14 '08 at 19:02 2008-10-14 19:02
source share