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

learn more… | top users | synonyms

4
votes
4answers
1k 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
10 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
47 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
30 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 ...
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 ...
1
vote
0answers
59 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
34 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 ...
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, ...
0
votes
1answer
30 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
33 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 ...
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 ...
0
votes
0answers
91 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 ...
3
votes
2answers
887 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 ...
0
votes
0answers
38 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
69 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, ...
0
votes
2answers
704 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 ...
3
votes
1answer
1k views

How can I install GnuTLS in MinGW/MSYS?

I've installed MinGW and MSYS on my Windows XP machine and now I want to compile an application which requires the GnuTLS libraries. How do I install that package? I tried mingw-get install ...
0
votes
1answer
183 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 ...
0
votes
0answers
185 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
726 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
34 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 ...
0
votes
0answers
29 views

exe file copied into c:\Windows\System32 not found in MinGW/MSYS

I have downloaded the sdelete tool from Microsoft and copied it into c:\Windows\System32 (Windows Server 2008R2). I thought the file should be accessible from MinGW/MSYS as exe files on the search ...
0
votes
0answers
42 views

Msys shell exits immediately when run with command parameter

Running msys shell with a -c parameter makes it exit immediately after the command finishes execution. This is similar behavior to cmd utility where the /c switch has the same behavior, which can be ...
1
vote
1answer
119 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
33 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 ...
0
votes
1answer
635 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 ...
0
votes
2answers
580 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 ...
0
votes
1answer
111 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?
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 ...
2
votes
0answers
280 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 ...
1
vote
0answers
128 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 ...
1
vote
1answer
312 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 ...
0
votes
1answer
157 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
130 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 ...
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
822 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
735 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: ...
1
vote
0answers
658 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 ...
3
votes
2answers
1k views

Unicode-based POSIX tools (other than Cygwin) for Windows?

GNU Win32 and MSYS are awesome, but it seems like all of their tools use the ANSI version of the Windows API, rather than the Unicode versions. Obviously, those are meant for Windows 95 and 98, not ...
2
votes
0answers
520 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
69 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
380 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 ...
0
votes
2answers
1k views

mingw/msys with vi, ctags support?

I'm trying to run vim on win7 inside msys (which isnt entirely necessary, i know i can run gvim in windows, but i'd like to be able to use vi inside terminal) everything installs fine with mingw-get ...
1
vote
1answer
181 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
747 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 ...
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
177 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?
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
276 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 ...
0
votes
2answers
934 views

MSYS: alias resets upon restarting MSYS console

Every time I reopen the MSYS console (not cmd.exe) I find that the aliases that I have added to the shell are cleared. How can I save my aliases so that I do not to reenter them on every use? For ...