Questions tagged [msys]

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

MSYS (or Minimal System) is a set of UNIX tools built to run on the Windows operating system. It is published by the same developers behind the MinGW developer environment.

MSYS contains the following tools in its base set:

  • bash
  • bzip2
  • GNU's coreutils (cat, wc, etc.), diffutils (diff, patch), and findutils (find, xargs)
  • file
  • gawk
  • gettext
  • grep
  • gzip
  • less
  • make
  • sed
  • tar
  • xz
91 questions
24
votes
8 answers

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 MSYS2's root directory, and bash is hardcoded in. I…
midrare
  • 395
  • 2
  • 3
  • 12
24
votes
4 answers

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, it outputs sh: mklink: command not found. Msys…
JellicleCat
  • 2,227
  • 4
  • 24
  • 31
23
votes
4 answers

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 exit; but this doesn't seem to work. If I do cmd…
Mihai Rotaru
  • 2,799
  • 5
  • 26
  • 25
20
votes
7 answers

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 can I do to make this work? I know I can launch the…
Ram Rachum
  • 5,121
  • 14
  • 58
  • 80
17
votes
4 answers

MinGW installer not working with proxy

Situation I want to install minGW and msys on a work pc, but I'm behind a proxy. The proxy settings are configured to auto detect in both internet explorer and firefox. The proxy is a http proxy on port 80 that requires authentification. I also have…
youR.Fate
  • 504
  • 1
  • 4
  • 15
16
votes
3 answers

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 if you understand the implications. My questions…
Aleksandr Dubinsky
  • 614
  • 2
  • 7
  • 17
16
votes
5 answers

"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).
LuxDie
  • 261
  • 1
  • 2
  • 7
11
votes
6 answers

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 new console window in some fixed location,…
zetah
  • 664
  • 2
  • 8
  • 14
11
votes
3 answers

Install GCC in Git for Windows bash environment

I have Git for Windows installed on a Windows 7 machine (no, sadly I can't switch to W10 on this particular machine). This comes with a bash environment that uses MinGW-64 but only includes some binaries. I'd like to add more, such as GCC. It seems…
Toby
  • 716
  • 4
  • 11
  • 28
11
votes
2 answers

Is there a way to run git within Powershell?

Is there a way to run git within Powershell? I have a Windows 7 box with msysgit. I'd like to have a single shell to also run all my git commands as well as play around with Powershell scripting.
spong
  • 2,029
  • 6
  • 28
  • 40
9
votes
2 answers

How can I change my MinGW/MSYS + mintty home directory?

I use mintty as my console emulator for MinGW/MSYS. Recently (I'm not certain exactly when), the home directory used by this combination changed from my Windows user folder (/c/Users//) to /home//, which is causing minor havoc for me. How…
Ben Blank
  • 1,044
  • 2
  • 13
  • 22
9
votes
1 answer

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?
Bjorn
  • 248
  • 4
  • 9
8
votes
1 answer

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 actually use it as such. How can I instruct…
Ben Blank
  • 1,044
  • 2
  • 13
  • 22
8
votes
3 answers

How to make MSYS (MSYS2) portable

On Windows, I have a C:\msys32 folder (containing what I believe to be a MSYS2 install) created for/by an ESP32 development environment (located in ~/esp). The MSYS home folder includes my Windows username. Now when I copy that install to another…
user287749
  • 103
  • 1
  • 6
7
votes
2 answers

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 bash prompt. It only seems to be able to take a…
John O
  • 725
  • 2
  • 9
  • 26
1
2 3 4 5 6 7