-3
votes
0answers
28 views

Why does windows not come with a Bash shell? [closed]

A bash shell is a pretty standard feature of a modern operating system but it is not part of Windows? Missing this is like missing a internet browser and makes a huge portion of work impossible. I ...
0
votes
1answer
14 views

Tried Installing ZSH through cygwin and then trying to use zsh through Cmder

I tried to install Cygwin (64 bit version) on my computer, and it went through hunky-dory until at the very end, autorebase.bat failed with exit code 1. I read through the logs and they weren't too ...
1
vote
0answers
31 views

popd and pushd behavior with “-n” option

I've been experimenting with pushd and popd in bash (Cygwin, man page says "GNU bash 4.1") and the man page doesn't quite seem to match the behavior. For pushd, the command % pushd +1 both ...
1
vote
1answer
16 views

Trouble creating real NTFS links using Cygwin

I have administrator privileges and would like Cygwin's ln -s to make NTFS links instead of the fake !<symlink> files that only Cygwin understands. I tried the following, based on Cygwin ...
0
votes
1answer
17 views

how come git bash can call java tools (xjc.exe) with unix paths but not cygwin?

From CMD.exe, I can run xjc as follows: xjc "c:/schema.xsd" -p abc -d "temp" From git Bash, I can run xjc as follows: xjc "/c/schema.xsd" -p abc -d "temp" As far as Cygwin goes, I can get it ...
0
votes
0answers
10 views

cygwin's chmod behaves as working, but it does not work

My Cygwin installation is behaving strangely: chmod does not work. [09:45 Administrator@DellIns14 ~] > ls -ls /usr/bin/chmod 64K -rwxr-xr-x 1 Administrator None 38K Feb 6 2012 /usr/bin/chmod ...
0
votes
1answer
31 views

Do I have to manually update my PATH in Cygwin shells?

I use Cygwin on Windows 7. I'm not really a Windows user, so it's already a little inconvenient for me to have to have this extra layer in between my OS and Zsh, my shell of choice. Now, I frequently ...
0
votes
0answers
17 views

How to run an script using cron in Windows 7 using cygwin?

I have installed all the dependencies in cron. My scripts are working properly, and also I have tested cron which I think works properly as well. However, I would like to set up a task to run a script ...
0
votes
1answer
75 views

How to use Console2 with tmux

I am able to start tmux using the mintty terminal included with cygwin. However, when using Console2 (running on 64-bit windows 7 and using C:\cygwin64\bin\bash.exe as the shell), I get the following ...
1
vote
1answer
35 views

Can I use Cygwin as a replacement for Ubuntu, for bash script testing?

Next wednesday i'm having an exam on Operating Systems. In this exam there will also be a part bash-scripting. The teacher itself will test the scripts in a Virtual Machine running Ubuntu. Myself, ...
0
votes
0answers
18 views

Cygwin broke something when trying to install new software

I was trying to install some OpenGL libraries and something strange happened so I stopped the update. Now, when I use cygwin, ls doesn't work and whenever I open up a new terminal window I get my ...
0
votes
1answer
248 views

I am having trouble trying to authenticate Google SDK using cygwin

I am trying to install SDK using Cygwin as instructed here https://developers.google.com/cloud/sdk/#Quick_Start after Cygwin is installed I follow the guide and then try to authenticate using the ...
0
votes
1answer
66 views

Choosing shell for xterm in Cygwin

Basically my question is closely related to this one: http://stackoverflow.com/questions/21905380/how-do-i-get-cygwin-xterm-to-use-bash-and-not-sh I also want to set bash as the default shell for ...
0
votes
2answers
163 views

Cygwin: Run a script in mintty/bash

Initially asked on SO.com, but I closed it. I think it better fits SU.com. Please tell me if it is also not the right place. I want to add a context menu to a .sh file to run it in cygwin. I tried ...
3
votes
2answers
250 views

Practical (closer to the classical Linux one) way to use (automate) SUDO for CygWin

Being able to use sudo commands in CygWin is useful, and faster than opening an elevated shell: Luis@Kenobi /cygdrive/c/Users/Luis $ net user /add TestUser System error 5. Access denied. Luis@Kenobi ...
-1
votes
1answer
40 views

Problems in CygWin accessing /dev/nul as non-privileged user

NOTE: This question is originally a simple typographic mistake (nulinstead of null) for the questioner. Anyway, the details could be useful for anyone having the same error and arriving here ...
0
votes
1answer
112 views

ConEmu + bash CTRL+L no longer working

I set up the following task in ConEmu in order to run bash: C:\cygwin\bin\bash.exe --login -i -cur_console:d:C:\cygwin\bin. Up until today, it ran wonderfully. However, I updated cygwin today, and ...
0
votes
1answer
53 views

remove 'Starting /bin/bash.exe' on cygwin chere

Is there a away to remove Starting /bin/bash.exe when right clicking Bash Prompt Here.
3
votes
3answers
314 views

What is the `[` command? [duplicate]

I have seen both in Cygwin and in Linux the [ command under /bin. Whenever I run it I get an error saying: missing ]. I never understood what this command does, I just one day found it wanted to ...
1
vote
1answer
91 views

How can I run a Cygwin command (not a Windows native command) as privileged?

If I open a (elevated via UAC) Bash Shell in CygWin: Luis@Kenobi /cygdrive/c/Windows/system32 $ crontab.exe -l -u Luisito must be privileged to use -u Tested on WinXP-SP3 and Win7-SP1. Same results ...
1
vote
1answer
58 views

Odd Cygwin issue when having an alias in my .inputrc file

When adding some aliass to .inputrc I noticed my 'a' key wasn't working on my keyboard when using Cygwin Bash. Took out all my alias and my 'a' key started working again. For testing I stripped down ...
0
votes
1answer
112 views

CygWin terminal in remote console (SSH) not starting at correct $HOME path

I have installed CygWin v1.7.28. The problem quickly explained: Basically, when starting a CygWin shell via remote login, the $HOME is not where it should, with all derivated (bad) consequences of ...
1
vote
1answer
199 views

Running a CygWin shell: what windows console (DOS) commands do disappear?

If under my Windows with CygWin (v2.831 32bits) I do: cmd mode 80,50 the screen width changes, but if I open a CygWin terminal, like bash: C:\cygwin\bin\bash --login -i $ mode 80,50 bash: ...
1
vote
2answers
410 views

How do I get Linux commands and scripts to work on Cygwin?

I'm back with a follow up question. How do I get Linux commands to work on Cygwin? First I asked you what tool should I use to help me run my Linux scripts on Windows and you suggested Cygwin and I ...
0
votes
1answer
78 views

iconv doesn't properly generate ascii

I have the following: $ file DailyFollowUp.csv DailyFollowUp.csv: Little-endian UTF-16 Unicode text, with very long lines, with CRLF, CR line terminators $ iconv -c -t ascii DailyFollowUp.csv > ...
0
votes
0answers
52 views

Special and diacritic charactres using less, cat and other linux tools

I am using GNU bash, Version 4.1.10(4)-release (i686-pc-cygwin) and set up my .inputrc to allow for special characters and German umlauts etc.: set meta-flag on set convert-meta off set output-meta ...
1
vote
0answers
71 views

Trying to bind <ESC> to keysequence “öö” in bash vi mode

I am trying to use the german umlaut "ö" in a sequence "öö" as a binding for ESC. Having the following in my .inputrc does the job with "jj" instead of "öö"; however, when changing "jj" to "öö", it ...
0
votes
0answers
43 views

How to add additional charsets to libiconv in Cygwin

My problem is, that I sometimes have to convert files in the ISO646-DE-encoding (for german authorities... Don't ask...). On each linux-system that I used iconv -f ISO8859-1 -t ISO646-DE worked ...
1
vote
1answer
43 views

Cygwin unable to compile

I just downloaded Cygwin, I've never used it before cause I've always used putty. Cygwin is not letting me compile; I can see the files but it just doesn't let me compile and I do not understand why, ...
3
votes
1answer
466 views

How to check if cygwin mintty/bash is run as administrator?

Problem Statement: What is the most elegant and robust way to test if Cygwin mintty bash session is "Run as adminstrator"? Why, specifically? I have typically several mintty terminals open when using ...
1
vote
1answer
68 views

Problems after installing Microsoft Services for UNIX

I had Cygwin installed and everything worked liked a charm. At some point I installed Microsoft Services for UNIX on my computer and the problems started. When I open up a commnad shell an wanna try ...
1
vote
1answer
112 views

After updating bashrc in cygwin the cursor starts at column 0 instead of after the prompt

The issue is that, if I update PS1 in bashrc, I see that by default the cursor gets placed at column 0 instead of after the prompt, and if I type anything it starts overwriting the prompt. I tested ...
2
votes
0answers
146 views

bash column command confused by ANSI color escapes

I have a bash script I got from Gary Bernhardt's dotfiles that prints a nice colorized listing of the recent git commits. It uses the column command to line the output up into columns. On my mac, it ...
2
votes
1answer
119 views

How can I attach a cygwin script to a keystroke?

I have a script that needs be launch through Cygwin with the following execution /usr/bin/bash -lic "/home/userdude/scripts/scrypty.sh param1 param2" How would I go about setting up a keyboard ...
1
vote
1answer
368 views

Bash script fails from Windows 7 task scheduler

In order to use rsync I created a Bash script. It runs fine from the Cygwin 32-bit shell in Win 7 but fails when run from the Win 7 Task Scheduler. My Task Scheduler script is a simple: ...
1
vote
1answer
225 views

Redirecting “time” command output to file in Cygwin

I'm trying to redirect the result of "time" command in Cygwin to a file, and I'm not sure how to do it. I've tried time app.exe > /file/path/file.txt, (time app.exe) > /file/path/file.txt, time ...
1
vote
0answers
220 views

How to kill process under cygwin after using kill -9 which does not work

I am using cygwin on Windows7. I tried to kill process on cygwin using kill -9, but it said 'No such process'. $ ps PID PPID PGID WINPID TTY UID STIME COMMAND 3976 ...
1
vote
1answer
275 views

Get cpu temps from terminal using Cygwin?

I am using Cygwin 64 on Windows 8 and would like to use the bash interface to get cpu temperatures (4 cores, as well as gpu temps). Is this possible? I am using the temperature monitor application and ...
2
votes
2answers
461 views

How to invoke Windows' gvim in a Windows environment from within Cygwin?

When I give a gvim command in Cygwin, I want it to invoke the gvim I've installed in my Windows. I tried writing a function in my .bashrc called gvim that invokes the gvim.exe in my Program Files ...
1
vote
1answer
196 views

Cygwin fatal error unable to configure ssh-host-config

I'm trying to install cygwin on windows XP SP2. After successfully installing, while opening Cygwin terminal it's showing the following error. 1 [main] -bash 4064 C:\cygwin\bin\bash.exe: *** fatal ...
-1
votes
1answer
2k views

more command not found in Cygwin

I typed this command as mentioned in my book. I don't see any output. Instead, I get an error: ls -l|more -bash: more: command not found How can I fix this problem? The same thing happens for the ...
0
votes
2answers
1k views

Shell Script Error using Cygwin

I got this error after execute shell script as below. $ ./script_test.sh ./script_test.sh: line 3: syntax error near unexpected token `$'do\r'' '/script_test.sh: line 3: `for ((j=0; j<"$N"; j++)) ...
1
vote
1answer
131 views

Grep to find files that contain ^M When ^m dos2unix and sed or “grep -r $'\r' *” does not work

I use Cygwin and made a txt file using a Perl script. There is a ^M (Windows cariage return) added, and I have no idea how. How do I find ^M when normal ways (^m dos2unix and sed or "grep -r $'\r' ...
4
votes
1answer
117 views

Saving a process ID when detaching a command in Bash

When I detach command: $ command & The result is a printout to STDOUT: [1] < PID > I would like to monitor this PID. However, I cannot write this output anywhere but STDOUT! How can I ...
0
votes
0answers
67 views

Getting rid of “bash.exe” - from my startup

Soluto reports that bash.exe is taking up 40 seconds of boot time, but I cannot disable it. If I search for it in msconfig, I cannot identify it. If I search for "bash.exe" I cannot identify it. If I ...
0
votes
1answer
79 views

Cygwin Syntax Trouble

I'm on windows 7 using Cygwin. My script and text file are located in the same directory. #!/bin/bash while read name; do echo "Name read from file - $name" done < /home/Matt/servers.txt I get ...
1
vote
1answer
86 views

Cannot type a letter while in Bash in Cygwin

I am unable to type a certain letter while in bash. I was editing .bashrc, or possibly .profile, which made it impossible to press the letter "a" (it is not showing up on screen, although I am able ...
0
votes
4answers
791 views

How do you pass a file or folder containing whitespace as an argument to a command-line program in a GNU/Linux or Cygwin environment?

There are occasions when you are working with files and folders that contain spaces in them. The problem is any time you try and pipe files / folders containing whitespace to another command-line ...
1
vote
1answer
165 views

Is it possible to have App-distinct Color Scheme in ConEmu?

I am presently using Bash (with Cygwin), as well as Powershell, both using ConEmu. I'm using bash.exe and powershell.exe via tasks. I'd like to use different colour schemes for the different ...
1
vote
0answers
68 views

Bash Shell doesn't recognize the letter “t”

I have Cygwin running on a Windows 7 Box. In what is a relatively new (and strange) development, the bash shell stopped recognizing the lowercase "t". For example: I type echo cat, output is ...