# Git for Windows/ bash does not like Julia

**URL:** <https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316>\
**Category:** General Usage\
**Tags:** question\
**Created:** [June 14, 2023, 7:43am UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316 "2023-06-14T07:43:17Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [June 14, 2023, 7:43am UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/1 "2023-06-14T07:43:18Z")

</div>

I am using git for windows, which installs a bash shell (MINGW64). I can start Julia 1.9.1 in this shell, but then the input gets stuck. I cannot enter anything on the Julia prompt.

Bash and Julia are working if I use it in vscode, though.

```julia
$ git --version
git version 2.40.1.windows.1

```

If I start Julia, it hangs, and then press \<ctrl\>+\<c\> I get:

```julia
julia> Unhandled Task ERROR: InterruptException:
Stacktrace:
  [1] poptask(W::Base.IntrusiveLinkedListSynchronized{Task})
    @ Base .\task.jl:974
  [2] wait()
    @ Base .\task.jl:983
  [3] wait(c::Base.GenericCondition{Base.Threads.SpinLock}; first::Bool)
    @ Base .\condition.jl:130
  [4] wait
    @ .\condition.jl:125 [inlined]
  [5] wait_readnb(x::Base.TTY, nb::Int64)
    @ Base .\stream.jl:416
  [6] eof(s::Base.TTY)
    @ Base .\stream.jl:106
  [7] eof(io::REPL.Terminals.TTYTerminal)
    @ Base .\io.jl:450
  [8] match_input(k::Dict{Char}, s::Union{Nothing, REPL.LineEdit.MIState}, term::Union{REPL.Terminals.AbstractTerminal, IOBuffer}, cs::Vector{Char}, keymap::Dict{Char})
    @ REPL.LineEdit C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\LineEdit.jl:1619
  [9] match_input(k::Dict{Char}, s::Union{Nothing, REPL.LineEdit.MIState}, term::Union{REPL.Terminals.AbstractTerminal, IOBuffer}, cs::Vector{Char})
    @ REPL.LineEdit C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\LineEdit.jl:1619
 [10] match_input(k::Dict{Char}, s::Union{Nothing, REPL.LineEdit.MIState}, term::Union{REPL.Terminals.AbstractTerminal, IOBuffer})
    @ REPL.LineEdit C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\LineEdit.jl:1619
 [11] match_input(k::Dict{Char}, s::Union{Nothing, REPL.LineEdit.MIState})
    @ REPL.LineEdit C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\LineEdit.jl:1619
 [12] prompt!(term::REPL.Terminals.TextTerminal, prompt::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\LineEdit.jl:2732
 [13] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\LineEdit.jl:2642
 [14] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\REPL.jl:1300
 [15] (::REPL.var"#62#68"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL .\task.jl:514
ERROR: TaskFailedException
Stacktrace:
  [1] try_yieldto(undo::typeof(Base.ensure_rescheduled))
    @ Base .\task.jl:920
  [2] wait()
    @ Base .\task.jl:984
  [3] wait(c::Base.GenericCondition{ReentrantLock}; first::Bool)
    @ Base .\condition.jl:130
  [4] wait
    @ .\condition.jl:125 [inlined]
  [5] take_buffered(c::Channel{Any})
    @ Base .\channels.jl:457
  [6] take!
    @ .\channels.jl:451 [inlined]
  [7] repl_backend_loop(backend::REPL.REPLBackend, get_module::Function)
    @ REPL C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\REPL.jl:244
  [8] start_repl_backend(backend::REPL.REPLBackend, consumer::Any; get_module::Function)
    @ REPL C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\REPL.jl:234
  [9] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool, backend::Any)
    @ REPL C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\REPL.jl:379
 [10] run_repl(repl::REPL.AbstractREPL, consumer::Any)
    @ REPL C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\REPL.jl:365
 [11] (::Base.var"#1017#1019"{Bool, Bool, Bool})(REPL::Module)
    @ Base .\client.jl:421
 [12] #invokelatest#2
    @ .\essentials.jl:816 [inlined]
 [13] invokelatest
    @ .\essentials.jl:813 [inlined]
 [14] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
    @ Base .\client.jl:405
 [15] exec_options(opts::Base.JLOptions)
    @ Base .\client.jl:322
 [16] _start()
    @ Base .\client.jl:522

    nested task error: InterruptException:
    Stacktrace:
      [1] poptask(W::Base.IntrusiveLinkedListSynchronized{Task})
        @ Base .\task.jl:974
      [2] wait()
        @ Base .\task.jl:983
      [3] wait(c::Base.GenericCondition{Base.Threads.SpinLock}; first::Bool)
        @ Base .\condition.jl:130
      [4] wait
        @ .\condition.jl:125 [inlined]
      [5] wait_readnb(x::Base.TTY, nb::Int64)
        @ Base .\stream.jl:416
      [6] eof(s::Base.TTY)
        @ Base .\stream.jl:106
      [7] eof(io::REPL.Terminals.TTYTerminal)
        @ Base .\io.jl:450
      [8] match_input(k::Dict{Char}, s::Union{Nothing, REPL.LineEdit.MIState}, term::Union{REPL.Terminals.AbstractTerminal, IOBuffer}, cs::Vector{Char}, keymap::Dict{Char})
        @ REPL.LineEdit C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\LineEdit.jl:1619
      [9] match_input(k::Dict{Char}, s::Union{Nothing, REPL.LineEdit.MIState}, term::Union{REPL.Terminals.AbstractTerminal, IOBuffer}, cs::Vector{Char})
        @ REPL.LineEdit C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\LineEdit.jl:1619
     [10] match_input(k::Dict{Char}, s::Union{Nothing, REPL.LineEdit.MIState}, term::Union{REPL.Terminals.AbstractTerminal, IOBuffer})
        @ REPL.LineEdit C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\LineEdit.jl:1619
     [11] match_input(k::Dict{Char}, s::Union{Nothing, REPL.LineEdit.MIState})
        @ REPL.LineEdit C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\LineEdit.jl:1619
     [12] prompt!(term::REPL.Terminals.TextTerminal, prompt::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
        @ REPL.LineEdit C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\LineEdit.jl:2732
     [13] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
        @ REPL.LineEdit C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\LineEdit.jl:2642
     [14] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
        @ REPL C:\Users\uwefechner\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\REPL.jl:1300
     [15] (::REPL.var"#62#68"{REPL.LineEditREPL, REPL.REPLBackendRef})()
        @ REPL .\task.jl:514
(base)
uwefechner@TUD262682 MINGW64 /

```

Is this a known problem? Is there a bash shell (terminal) that works together with Windows and Julia?

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [June 14, 2023, 8:04am UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/2 "2023-06-14T08:04:03Z")

</div>

I do not recall having this issue.

I regularly use MSYS2’s MINGW64 environment to build Julia amd do not have any issues there. I used to use Cygwin and also did not have any issues there.

Under Windows, I often use Windows Terminal to run Julia under Powershell.

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [June 14, 2023, 8:06am UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/3 "2023-06-14T08:06:58Z")

</div>

I can confirm the issue, same error.

Julia 1.9.0 (installed with juliaup)

git is a bit outdated: git version 2.39.0.windows.1

---

<div class="post-metadata">

**Author:** ![magister-ludi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/magister-ludi/32/4003_2.png) [@magister-ludi](https://discourse.julialang.org/u/magister-ludi)\
**Post date:** [June 14, 2023, 8:59am UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/4 "2023-06-14T08:59:15Z")

</div>

> [@ufechner7](#):
>
> Is there a bash shell (terminal) that works together with Windows and Julia?

I use Cygwin inside Windows Terminal and Julia for Windows. Works well for me, but it may be more overhead than you want.

---

<div class="post-metadata">

**Author:** ![frylock](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/frylock/32/50213_2.png) [@frylock](https://discourse.julialang.org/u/frylock)\
**Post date:** [June 14, 2023, 12:18pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/5 "2023-06-14T12:18:01Z")

</div>

Why not use [WSL](https://learn.microsoft.com/en-us/windows/wsl/about)? We use that for Julia and it works very well.

---

<div class="post-metadata">

**Author:** ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Post date:** [June 14, 2023, 12:51pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/6 "2023-06-14T12:51:16Z")

</div>

I can reproduce in the Git Bash shell.

Interestingly, the issue does not happen when you do it through Windows Terminal. I much prefer the Windows Terminal so perhaps that is why I haven’t encountered this. For what it’s worth, I even now prefer to use the new Powershell instead of Git Bash as my default.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [June 14, 2023, 12:53pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/7 "2023-06-14T12:53:51Z")

</div>

One only should use programs on the WSL side to access files then. Accessing files from both Windows programs and WSL-run programs may lead to corrupted contents due to locking:

> **[Never create or change Linux files using Windows Apps and Tools](https://www.thewindowsclub.com/change-linux-files-using-windows-tools)**
>
> Events like data corruption or damaged Linux environment can occur when you try to create Linux files using Windows tool. So what should you do?

Potential performance gain:

> [@Windows 11 versus WSL2: Need for Speed](https://discourse.julialang.org/t/windows-11-versus-wsl2-need-for-speed/99086):
>
> Could one gain a significant advantage using Julia in Linux running within WSL2 compared to the Windows version? Package instantiation. 239 dependencies, always starting from blank slate (no depot). Julia Version 1.9.0 Commit 8e63055292 (2023-05-07 11:25 UTC) Platform Info: OS: Windows (x86\_64-w64-mingw32) CPU: 8 × Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz WORD\_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-14.0.6 (ORCJIT, icelake-client) Threads: 1 on 8 virtual cores Environment: JULI…

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [June 14, 2023, 1:03pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/8 "2023-06-14T13:03:57Z")

</div>

I use 1.9 with git bash exclusively, both on Win 10 and 11. Never any problems.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [June 14, 2023, 1:33pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/9 "2023-06-14T13:33:33Z")

</div>

I installed cygwin to check if it works with Julia, but I get:

```julia
uwefechner@TUD262682 ~
$ julia
-bash: /cygdrive/c/Users/uwefechner/AppData/Local/Microsoft/WindowsApps/julia: Permission denied

```

Should the Windows version of Julia work with cygwin or do I need the Linux version?

---

<div class="post-metadata">

**Author:** ![magister-ludi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/magister-ludi/32/4003_2.png) [@magister-ludi](https://discourse.julialang.org/u/magister-ludi)\
**Post date:** [June 14, 2023, 1:48pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/10 "2023-06-14T13:48:23Z")

</div>

Hmm, I’m not sure what’s happened there, I haven’t seen that before. I have Julia (Windows version) in my Windows path (currently Win11, but previously Win10), which Cygwin adopts.  
I can run that Julia from Cygwin and Windows without any noticeable differences. I also run it from the Cygwin version of emacs, which is my standard development tool.  
I have seen a similar problem with Python, but the Python installation does weird things with links.

---

<div class="post-metadata">

**Author:** ![magister-ludi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/magister-ludi/32/4003_2.png) [@magister-ludi](https://discourse.julialang.org/u/magister-ludi)\
**Post date:** [June 14, 2023, 1:55pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/11 "2023-06-14T13:55:37Z")

</div>

> [@ufechner7](#):
>
> `/cygdrive/c/Users/uwefechner/AppData/Local/Microsoft/WindowsApps/julia`

That path looks a bit odd to me. I’m on my phone right now, but my recollection is that (with the standard installation) the Julia executable would be in a directory  
`/cygdrive/c/Users/username/AppData/Local/Microsoft/WindowsApps/julia-1.x.x/bin`  
Midnight here, but I’ll confirm/update in the morning.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [June 14, 2023, 1:55pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/12 "2023-06-14T13:55:41Z")

</div>

```julia
uwefechner@TUD262682 ~/AppData/Local/Microsoft/WindowsApps
$ ls -la julia.exe
lrwxrwxrwx 1 uwefechner Domain Users 113 May 1 17:52 julia.exe -> '/cygdrive/c/Program Files/WindowsApps/JuliaComputingInc.Julia_1.8.16.0_x64__b0ra4bp6jsp6c/Julia/julialauncher.exe'

```

Perhaps there is some conflict with juliaup?

---

<div class="post-metadata">

**Author:** ![magister-ludi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/magister-ludi/32/4003_2.png) [@magister-ludi](https://discourse.julialang.org/u/magister-ludi)\
**Post date:** [June 14, 2023, 2:01pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/13 "2023-06-14T14:01:56Z")

</div>

OK, that looks like the same kind of thing that happened for me with Python. I use the standard Julia installer from [julialang.org](http://julialang.org), which puts `julia.exe` in the path I indicated earlier. Maybe you could adjust the Cygwin path so that the **real** executable takes precedence?

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [June 14, 2023, 6:16pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/14 "2023-06-14T18:16:04Z")

</div>

> [@ufechner7](#):
>
> I installed cygwin to check if it works with Julia, but I get:
> 
> ```julia
> uwefechner@TUD262682 ~
> $ julia
> -bash: /cygdrive/c/Users/uwefechner/AppData/Local/Microsoft/WindowsApps/julia: Permission denied
> 
> ```
> 
> Should the Windows version of Julia work with cygwin or do I need the Linux version?

This one I can’t confirm.  
My Julia 1.9.0 installed with juliaup runs without problems in a cygwin64 Terminal with bash:

```julia
Oli@OLISPC ~
$ julia
The latest version of Julia in the `release` channel is 1.9.1+0.x64.w64.mingw32. You currently have `1.9.0+0.x64.w64.mingw32` installed. Run:

  juliaup update

to install Julia 1.9.1+0.x64.w64.mingw32 and update the `release` channel to that version.
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.9.0 (2023-05-07)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

julia>

```

The PATH where `julia` is found is from:

```julia
/cygdrive/c/Users/Oli/AppData/Local/Microsoft/WindowsApps

```

like yours.  
But those executables there are just links:

```julia
$ ls -la /cygdrive/c/Users/Oli/AppData/Local/Microsoft/WindowsApps/julia
lrwxrwxrwx 1 Oli Kein 113 May 12 20:34 /cygdrive/c/Users/Oli/AppData/Local/Microsoft/WindowsApps/julia 
-> 
/cygdrive/c/Program Files/WindowsApps/JuliaComputingInc.Julia_1.10.0.0_x64__xxp6kd97rza1c/Julia/julialauncher.exe

```

as you found out too.

So you have to check the access rights along this path:

```julia
/cygdrive/c/Program Files/WindowsApps/JuliaComputingInc.Julia_1.10.0.0_x64__xxp6kd97rza1c/Julia/julialauncher.exe

```

Of course you check your path which is a bit different from mine.

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [June 14, 2023, 7:23pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/15 "2023-06-14T19:23:20Z")

</div>

I just tried git bash.

I got the following error.

```julia
user@host-2 MINGW64 ~
$ julia
bash: /c/Users/user/AppData/Local/Microsoft/WindowsApps/julia: Permission denied

```

Then I went to run julia in Windows terminal to find where the real julia executable is.

```julia
julia> Base.julia_cmd()
`'C:\Users\user\.julia\juliaup\julia-1.9.1+0.x64.w64.mingw32\bin\julia.exe' ...

```

Then I tried to run this in git bash:

```julia
$ /c/Users/user/.julia/juliaup/julia-1.9.1+0.x64.w64.mingw32/bin/julia.exe
julia> println("Hello World")
Hello World

```

That works for me.

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [June 14, 2023, 7:43pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/16 "2023-06-14T19:43:34Z")

</div>

Just one word of warning: don’t mess with permissions or anything else with the files in `Program Files/WindowsApps/JuliaComputingInc.Julia_1.10.0.0_x64__xxp6kd97rza1c/Julia/julialauncher.exe`. That stuff is supposed to be completely managed by the MSIX engine and _very_ much an implementation detail of that system. The way to launch things when you installed Julia from the Windows Store is to use the execution alias at `AppData/Local/Microsoft/WindowsApps/julia`. Note also that an execution alias is _not_ a symbolic link. It has much more information that controls in what kind of container environment Windows launches stuff (none for us).

The original issue to me looks somehow related to the juliaup launcher, as I don’t get that behavior if I just launch the binaries from the `.julia/juliaup` folder. Probably best to open an issue over at [GitHub - JuliaLang/juliaup: Julia installer and version multiplexer](https://github.com/julialang/juliaup).

I think I would also suggest to just use Windows Terminal with the auto-installed Git Bash profile in it instead of the mintty terminal that ships with git for now. That seems to work for me.

The second (and probably entirely unrelated) problem seems to be the permission problem when trying to launch the julia execution alias on @ufechner7’s system from cygwin. That should ideally be a separate issue over at the Juliaup repo. I don’t have cygwin installed, so can’t repo that at the moment.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [June 15, 2023, 1:18pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/17 "2023-06-15T13:18:07Z")

</div>

The following works for me:

1. uninstall juliaup and Julia using the Windows start menu: it should show the option uninstall for Julia
2. install jill: `pip install jill`
3. install Julia with jill: `jill install 1.9`
4. add the following path to the PATH variable of your local user: `C:\Users\uwefechner\AppData\Local\julias\bin` On your machine it will be slightly different, but jill tells you the correct path to add.
5. lauch git bash and type `cd ~/AppData/Local/julias/bin`
6. create a file with the name `julia` and the following content:

```julia
#!/bin/bash
julia.cmd $@

```

Now Julia should work fine in git bash, and if you switch the Julia version with jill it will also use the correct version in git bash.

**Summary:** Currently Julia installed via juliaup is incompatible with git bash on Windows, if you installed Julia in a different way it just works.

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [June 15, 2023, 5:47pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316/18 "2023-06-15T17:47:33Z")

</div>

> [@ufechner7](#):
>
> Currently Julia installed via juliaup is incompatible with git bash on Windows

I think technically the problem seems to be with the mintty terminal that ships with git for Windows. git bash when started in the Windows Terminal seems to work fine with juliaup on my system.
