Skip to main content

All Questions

Tagged with
2 votes
1 answer
74 views

Cygwin bash script file fails silently

I have a script file that uses rsync for backup, then compares the two directory trees using diff. diff seems to find all the differences correctly - it matches what WinMerge finds. But when there ...
Ronzone's user avatar
  • 21
0 votes
0 answers
174 views

cygwin terminal adds carriage return to bash prompt [duplicate]

Running Windows 10. Just installed Cygwin, running it in Windows Terminal, tried to change the prompt format by editing PS1 variable and exporting in .bashrc and .bash_profile: alias vim='nvim' alias ...
chenel's user avatar
  • 1
0 votes
0 answers
88 views

cygwin64's pgrep not working

I installed Cygwin64 and tried its pgrep.exe tool (with admin privilege) as follows: PS D:\cygwin64\bin> D:\cygwin64\bin\pgrep.exe svchost.exe PS D:\cygwin64\bin> D:\cygwin64\bin\pgrep.exe ...
D.J. Elkind's user avatar
0 votes
0 answers
1k views

SSL connect error (schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE

I try to install spotdl using cygwin git clone https://github.com/spotDL/spotify-downloader && cd spotify-downloader curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh pip install ...
Super Sonic's user avatar
-2 votes
2 answers
438 views

$PATH corruption on Cygwin on Windows 10

I am running cygwin on a Windows 10 computer. If I execute $PATH from the cygwin command window, I get the following error: $ $PATH -bash: /usr/local/bin:/usr/bin:/cygdrive/c/Program: No such file or ...
Ben Blackwell's user avatar
2 votes
1 answer
159 views

How to access DNG file creation date from Windows Explorer

I would like to access the creation date of a DNG file, SomeImage.DNG. In Windows Explorer, under View > Details, the "Date" column lists the correct creation date, which I happen to know....
KAE's user avatar
  • 1,889
1 vote
1 answer
348 views

Start cygwin bash.exe without inheriting windows home

I want to be able to run in the cygwin environment from CMD but when I run C:\cygwin64\bin\bash.exe -l -i my home gets set to the windows home. As I understand bash.exe inherits the environment from ...
Pangi's user avatar
  • 15
1 vote
2 answers
516 views

Cygwin find returns "missing argument to `-exec'"

I have backups script that removes backups older than x days. On Linux machine this is working well: find /backups/dummy-prod-db -name "*_D_dummy-prod-db*" -type f -mtime +7 -exec rm -v {} \;...
Kamil's user avatar
  • 2,666
0 votes
1 answer
449 views

Move and rename files based on their parent folders

I'm trying to write a Bash function that will find files in a given directory tree and move them to the current folder while renaming them based on their parent folder, but I'm still stuck on the ...
Hashim Aziz's user avatar
  • 13.1k
4 votes
2 answers
2k views

Windows: How to make cygwin bash.exe to take precedence over wsl in command line?

I have installed cygwin on Windows 11. Now, when I open the Windows command line, I want the bash.exe command to run the cygwin's bash command instead of bash linked with wsl (Windows subsystem for ...
Adam's user avatar
  • 151
0 votes
1 answer
268 views

can't run commands in bash invoked from emacs shell on windows

I invoked "shell" which correctly runs cmd.exe and runs correctly. However, when I run bash from within that shell, every command gives an error Microsoft Windows [Version 10.0.22000.739] (c)...
anjanbacchu's user avatar
  • 1,407
1 vote
0 answers
852 views

bash: patch.exe: Permission denied; how to turn off security regarding 'patch' in program name in windows 10?

I stumbled upon a problem patching a .diff file using patch. I use bash under windows 10 and the result of of this operation is as follows: $ patch < patch.diff bash: /cygdrive/c/cygwin/bin/patch: ...
tansy's user avatar
  • 176
0 votes
1 answer
208 views

Accessing notepad++ from cygwin bash

So when I am writing code, I use notepad++ and when I am done, I copy-paste it to plain old notepad because I use Cygwin and notepad is the only text editor that I know how to access from the shell. ...
Ahmad Alkhaled's user avatar
1 vote
3 answers
346 views

What does the "cyg" prefix mean?

I've seen so many cyg prefixed things like cygstart, cygpath, cygwin etc., but what exactly does this prefix mean?
Wenfang Du's user avatar
3 votes
1 answer
198 views

Can I add a newline into a command from bash's history?

I often stumble across this problem: I type a command that has multiple lines for readability. This is an example: echo "Hello. This is an example of a very long command which is divided into ...
Bowi's user avatar
  • 1,537

15 30 50 per page
1
2 3 4 5
18