Set of GNU utilities packaged for Windows. Questions about msysgit should use [msysgit] instead.

learn more… | top users | synonyms

0
votes
1answer
14 views

msys2 create a sym link into windows folder location

I have just started to use msys2. I wanted to make a sym link to a folder on my d:. I can access it like this: cd /d/mytestfolder/ I tried: When I do ln -s /d/mytestfolder/ testfolder - this seems ...
0
votes
0answers
34 views

MSYS2 permissions

In Windows 10, with MSYS2 I set my fstab to: none / cygdrive binary,posix=0,acl,user 0 0 I am unable to set execute permissions with chmod, despite having acl set in the fstab: # echo > foo # ...
0
votes
0answers
34 views

`make` error when building gdb 7.11 on Windows 7 using MinGW 4.6.1 and MSYS

I hope this is the right Stack Exchange site to post this question to. I am trying to compile gdb 7.11 on Windows 7 from source and installed MSYS to get a bash shell. I then ran ./configure with the ...
0
votes
0answers
18 views

GnuTLS: undefined reference to 'CertEnumCRLsInStore'

This all started because I wanted to compile FFMPEG with specific options. One or more of these options requires that I have GnuTLS installed as well. So I went through the process of downloading and ...
1
vote
1answer
89 views

pandoc - markdown to man page tables not formatted (on msys2)

I am trying to use pandoc (if someone has a better conversion program I am all ears, please not ruby-dependent) to convert markdown files into manpages. It works fine until I go to do a doc with a ...
0
votes
0answers
36 views

Source windows environment variables in MSYS

I have a setenv.cmd script which contains paths for the windows cmd prompt: set CURRENT_SCRIPT_DIR=%~dp0 set PATH=%PATH%;%CURRENT_SCRIPT_DIR%\bin But I'm using bash (via msys in the git for windows ...
1
vote
0answers
169 views

“git mv *” returns “bad source” in Powershell

When inside a git repository in Powershell or CMD, issuing git mv * whatever will return fatal: bad source, source=*, destination=whatever This works fine when using MSYS (Git Bash).
0
votes
0answers
46 views

How can I set up a linux-like ssh server on Windows 7?

I have tried two things so far: (1) I installed openssh directly following the steps in this guide https://winscp.net/eng/docs/guide_windows_openssh_server. While this was easy, and worked in the ...
0
votes
1answer
65 views

How do I open the current directory in mingw's msys in file explorer?

Assume I'm in: $ pwd /home/foo Now I want to open up this /home/foo in Windows 10's file explorer. How do I do this?
0
votes
0answers
46 views

How to correctly pin MSYS to task bar in Windows 8?

I use MSYS/MinGW a lot on Windows 8.1 and wanted to create a shortcut on the taskbar at the bottom. What I did is to lauch MSYS, and once it appears on the task bar, choose "pin this program to task ...
0
votes
0answers
126 views

How should I properly configure NetBeans with MinGW-w64 and MSYS2?

I'm trying to set up NetBeans for C++ development. I have installed msys2 into C:\msys64 and installed mingw-w64 within it. I added them into my path and compiled my test project on the command line ...
0
votes
0answers
50 views

detaching a process from a shell doesn't work as an argument in Windows

I want Windows gVim to inherit its $PATH from MSYS2. This is as simple as starting up an instance of bash then starting gVim from that instance. The problem occurs because I want the startup bash ...
2
votes
0answers
83 views

Windows gVim, shell starts in HOME instead of working directory

I've recently have gotten sick of constantly switching between Windows and Linux and installed gVim and MSYS2 on Windows 7. After a couple hours of searching I have a .vimrc that makes !command, make, ...
1
vote
2answers
1k views

Is the option “Use Git and optional Unix tools from the Windows Command Prompt” dangerous?

When installing Git, it offers the option to add all of its msys *nix tools into your PATH, however it warns: Warning: This will override Windows tools like "find" and "sort". Only use this option ...
4
votes
5answers
2k views

Change default shell on MSYS2

I want to change MSYS2's default shell from bash to zsh. I've tried chsh - not available in MSYS2. Editing /etc/passwd does nothing. It seems to be ignored. I took a look at the batch scripts in ...
0
votes
0answers
254 views

Install msys2 so c:/ is /

I'm trying to switch from cygwin to msys2. I use cygwin extensively for the Unix tools, not so much for building software but just as my command-line environment to make Windows more Linux-like - I ...
1
vote
1answer
1k views

How can I use mintty as the terminal emulator for MinGW/MSYS?

The default "terminal emulator" in Windows leaves a lot to be desired. I see mintty recommended as a lightweight alternative with specific support for MinGW/MSYS, but not much information on how to ...
0
votes
0answers
36 views

Unable to install in MSYS2 using Arch Linux pacman

I have installed MSYS2 on Windows and successfully used the Arch Linux pacman installer to get a bunch of programs on there (gcc puthon vim etc). Some things give a "not found" error, though, and I ...
1
vote
1answer
145 views

Escaping asterisk * in Bash on Windows

The following command works in GNU Bash on FreeBSD but not in Git Bash on Windows: curl -X PUT https://example.com/_config/cors/origins -d '"*"' The intended result is to send a PUT request to ...
0
votes
0answers
38 views

installing swig i had to untar something using msys, but it doesn't work

i installed MinGW and MSYS required to install swig. using msys terminal it asked me to download pcre-8.36.tar.bz2 form pcre site, and asked me to: "Build PCRE as a static library using the Tools/pcre-...
0
votes
1answer
674 views

tmux on Windows (msys2) and non-admin fails

Whe trying to run tmux as a non-admin I'm greeted with failed to connect to server: Permission denied It works fine when running msys-bash-mintty as administrator though. Where should I start ...
2
votes
2answers
2k views

MSYS2 home folder: show ~

I've just installed MSYS2, and to have it use my Windows user folder as $HOME, I put this in /etc/bash.bashrc: HOME=$USERPROFILE And that works fine when I just run cd, except the prompt doesn't ...
3
votes
2answers
1k views

Add “Open MSYS terminal here” in the Windows right click context menu?

In Windows file explorer,if I hold shift + right-click on a folder (in a folder too) I can choose to Open command window here. I'd really like to add an Open MSYS terminal window here to the popup ...
1
vote
0answers
144 views

Why do MinGW and MSYS have separate versions of gcc?

This is my understanding of the relationship between MinGW and MSYS. When installing MinGW and its gcc toolchain, installing MSYS is optional. With MSYS installed, you get bash and a few other tools ...
0
votes
1answer
118 views

Print Windows mapping of root path in MSYS Bash

In MSYS Bash I get: $ cd ~ $ pwd /c/Users/antonio but: $ cd / $ pwd / Can I get the full Windows absolute path from Bash?
0
votes
1answer
171 views

Running hstart from MSYS

I'm trying to automate some things on my computer. And here's what I ran into. I'm running this command from MSYS prompt: hstart /elevate "cmd /k netstat -anb" First a message box with title "...
1
vote
1answer
157 views

Modifying msys privileges on windows 7

How do I run a cmd.exe command in msys as a superuser? I am the only user on my laptop and have full administrative privileges once I login. I assumed I did when I fired up an msys shell, but running:...
1
vote
2answers
3k views

MinGW MSYS ssh error: Could not create directory '/home/<username>/.ssh'

I have just installed a fresh MinGW installation on Windows 7 64bit using the Graphical User Interface Installer (the recommended approach) following the instructions given here and keeping the ...
1
vote
1answer
876 views

my msys2 home has moved from a linux like one to a windows like one. How to restore it?

I have installed MSYS2. First, I had my HOME in /home/Laurent, / being c:/msys64 in Windows. Then I made different thinks, install Mingw, CMake, and especially msysgit, which has its own MSYS setup. ...
1
vote
1answer
793 views

git clone fails with “bad object” under msys2 in a VM

When I try to git clone a github project under my Windows 7 - MSYS2 VirtualBox VM, it fails: laurent@Win7 ~/Dev $ LANG="en" GIT_TRACE="1" git clone git://github.com/nanomsg/nanomsg.git trace: built-...
0
votes
2answers
617 views

rsync on Windows not transferring large files

I'm noticing a strange issue where rsync isn't transferring large (approx >3GB) files. I'm running MSYS rsync and I'm transferring on my LAN from my Windows box to my Linux based NAS over ssh. Most of ...
1
vote
0answers
710 views

PATH variable - System vs User - why is it dangerous to modify System PATH on Windows?

While installing MinGW, the users are warned about making changes to the System PATH variable: You should not alter the system path variable in any manner, or you will cause all sorts of problems ...
0
votes
1answer
198 views

Restricting MSYS (Bash) auto-completion to current directory

I'm using MSYS on Windows 7 and I really enjoy the TAB auto-completion feature of the bash console. However it appears that this feature queries all directories in Windows' $PATH variable, requiring ...
2
votes
0answers
553 views

Using the msysgit shell in Emacs for windows

I am relativley new to Emacs and am trying to setup emacs, to allow the following command to open the msysgit shell. M-x bash-shell I have added following snippet to my init.el. (defun bash-shell (...
1
vote
0answers
76 views

Msys cd .. command takes me to home directory instead of parent

I'm using Msys on Windows 7 with what I believe to be a Bash shell. I want to navigate the following directory structure: Drive (M:) +--- Coding +--- CPP +--- projects +--- ...
3
votes
3answers
398 views

How to escape files containing special characters like -, or spaces

The contents of a directory: $ ls -l total 122639 -rw-r--r-- 1 125578080 Aug 20 17:47 - Diana Krall, Stan Getz & Oscar Peterson.7z drwxr-xr-x 4 4096 Aug 20 18:02 Java I wish to use the ...
4
votes
2answers
3k views

Start MSYS in current folder

I have MinGW/MSYS on Windows, and can't figure how to start MSYS shell in folder I'm working in. For example, in Windows console I'm working in folder c:\temp and if I call MSYS (msys.bat) it opens ...
1
vote
1answer
187 views

Windows SymLink Questions: How do I tell if a file is symlinked /

I'm not exactely sure how to phrase my questions, I'll describe what I'm doing, perhaps my misconceptions will show. I'm on windows 7. I symlinked files that I'm working on in a project to a sandbox ...
0
votes
1answer
818 views

How to set history length for msys?

On my Debian VM I'm setting the $HISTSIZE and $HISTFILESIZE (and other history related environment variables) on system start / profile load: ~/.profile export HISTSIZE=100000 export HISTFILESIZE=...
2
votes
0answers
305 views

msys-1.0's dd on windows

msys-1.0 (MinGW) has an implementation of dd usable on windows (dd.exe) but windows does not have file representations of drives to use with dd. Or does it? Afaik dd operates on files. Is there a way ...
3
votes
2answers
2k views

Can Mingw32/Msys run dos/cmd.exe executables without screwing up the arguments?

I'm trying to run growlnotify.exe from a Windows bash prompt. Recompiling it for mingw32 isn't a good option for me. growlnotify works if I use it from the cmd prompt, but it fails (mostly) from the ...
0
votes
1answer
178 views

MsysGit gets differend look&feel depending on, how it is called

When I start msysgit (C:\msysgit\msysgit\msys.bat) from its directory, it has an other visual settings, as when I start it over a shortcut in the Quick Launch. Why? How can I change it?
3
votes
2answers
3k views

Use mklink in msys

I understand that Windows later-than-or-equal-to* Vista provides the mklink shell command. I'd like to make use of this from the Msys terminal. Any idea how? When I enter mklink on the msys terminal, ...
8
votes
2answers
3k views

How to run internal cmd command from the msys shell?

The Windows CMD utility has a number of internal commands, such as mklink. How can they be used from the msys shell ? From CMD's documentation, the /c switch can be used to execute a command and ...
0
votes
1answer
2k views

Install mingw and msys to run c programs on windows

I installed MinGW by using mingw-get-inst-20111118.exe and it works but it is very slow! I don't want to install it online, I remember that I have previously installed MinGW and msys by using two ...
2
votes
1answer
292 views

Change colours on Msys

I like to use Msys for SSH (because Putty complicates matters with its non-standard ssh keys), but when I request a directory listing (ls) in an SSH session, subdirectories are listed in a blue colour ...
2
votes
2answers
230 views

Why doesn't MSYS grep take options from variable?

To set my default options for grep (from MSYS in Win7) to ignore object files and specific dirs, I exported GREP_OPTIONS to ~/.profile as follows: export GREP_OPTIONS='--exclude=*.{o,obj,pyc} --...
0
votes
1answer
261 views

MinGW interactive shell?

I see that MinGW shell launches with sh --login -i Another way to launch would be like this sh --login I know that -i is for interactive shell, but I am not seeing a difference between the two ...
1
vote
1answer
319 views

'unlink' command on msys

I'm executing a bootstrap on msys, but the process terminates with the message: ../bootstrap: line 199: unlink: command not found I am a bit surprised that the unlink command is not inherent in msys....
7
votes
4answers
10k views

Making `#!/usr/bin/env python` work on Windows

I use Bash on Windows, provided by MSYS. I tried to run a Python file with a shebang of #!/usr/bin/env python, but I get this error message: /usr/bin/env: python: No such file or directory What ...