Cmder: No Unix commands?

Created on 25 Aug 2015  ·  15Comments  ·  Source: cmderdev/cmder

Hello,

I removed completely my old Cmder install and downloaded the latest version. Now I have no Unix commands such as git ls or ssh available to me. I just copy over files from the archive then run them and I get this behavior. I've confirmed there are no handles or running processes still using those files as well when I copy.

Most helpful comment

Do you have Git for Windows installed in some non-default location? It's normally found in C:\Program Files (x86)\Git or similar.

Cmder should check for an existing msysgit directory, and add it to the path if found.

If for some reason that check isn't happening, you could try to add it to your path manually.

All 15 comments

Unix commands come from git for windows. This can either be installed on your machine and included in your path, or is included as part of the 'cmder full' package.

If you do not have git installed on your machine, It may be that you have replaced your older version with 'cmder mini' (a version which does NOT include git and the accompanying tools). I would check again which version you downloaded.

I made sure to download the full version.

I have Git for Windows installed as well but I figured Cmder was supposed to use the msysgit tools that it is distributed with. When I echo %PATH% within cmder, I don't see the msysgit directory listed.

Do you have Git for Windows installed in some non-default location? It's normally found in C:\Program Files (x86)\Git or similar.

Cmder should check for an existing msysgit directory, and add it to the path if found.

If for some reason that check isn't happening, you could try to add it to your path manually.

Ok well I added the msysgit bin directory to my PATH manually and I guess that works. But also, cmder used to know that '~' corresponded to my user directory. Now when I do cd ~, it tells me The system cannot find the path specified. Am I crazy or did this used to work?

I think the problem is that git for windows 2.5 does not add unix commands to the path:

λ path
PATH=C:\Users\...\Dropbox\Programme\cmder\bin;C:\Program Files\Git\bin;C:\Program Files\Git\share\vim\vim74;[...];C:\Program Files\Git\cmd;[...];

λ dir "C:\Program Files\Git\bin"
17.08.2015  15:19            32.256 bash.exe
17.08.2015  15:18           139.776 git.exe
17.08.2015  15:19            32.256 sh.exe

λ dir "C:\Program Files\Git\cmd"
17.08.2015  15:18           139.776 git-gui.exe
17.08.2015  15:18           139.776 git.exe
17.08.2015  15:18           139.776 gitk.exe
25.08.2015  12:07             3.031 start-ssh-agent.cmd

The unix commands are available in %GIT%\usr\bin:

λ dir "c:\Program Files\Git\usr\bin\
07.11.2014  08:12            27.961 arch.exe
21.05.2015  16:14           581.408 awk.exe
08.03.2015  07:15             7.242 backup
07.11.2014  08:12            35.635 base64.exe
07.11.2014  08:12            28.024 basename.exe
28.06.2015  10:08         2.060.246 bash.exe
28.06.2015  10:08             6.875 bashbug
04.11.2014  11:35            89.618 bunzip2.exe
04.11.2014  11:35            89.618 bzcat.exe
04.11.2014  11:35             2.128 bzcmp
04.11.2014  11:35             2.128 bzdiff
04.11.2014  11:35             3.642 bzegrep
[...]

I installed the "make git available in cmd" version.

On my installation I needed to change this line to make it work:
https://github.com/cmderdev/cmder/blob/development/vendor/init.bat#L83

- set "PATH=%PATH%;%GIT_INSTALL_ROOT%\usr\bin;%GIT_INSTALL_ROOT%\usr\share\vim\vim74"
+ set "PATH=%PATH%;%GIT_INSTALL_ROOT%\bin;%GIT_INSTALL_ROOT%\usr\bin;%GIT_INSTALL_ROOT%\usr\share\vim\vim74"
λ git --version
git version 1.9.5.msysgit.0

bc is not working for my cmder....it says bc is not recognised as internal or external command. what to do ??

screenshot 163

What is bc?

Basic calculator...

On Apr 8, 2018 17:27, "Dax T Games" notifications@github.com wrote:

What is bc?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cmderdev/cmder/issues/610#issuecomment-379544552, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AkaIxRmAuGb1lNaCwCnO-4kWOU0lANG1ks5tmfsCgaJpZM4FxtqQ
.

Did you try any other commands. I doubt 'bc' is a part of git-for-windows.

On April 8, 2018 8:04:26 AM kavyarangaiah notifications@github.com wrote:
Basic calculator...

On Apr 8, 2018 17:27, "Dax T Games" notifications@github.com wrote:

What is bc?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cmderdev/cmder/issues/610#issuecomment-379544552, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AkaIxRmAuGb1lNaCwCnO-4kWOU0lANG1ks5tmfsCgaJpZM4FxtqQ
.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Other than bc, what else I can try?? Please suggest me.....

On Apr 8, 2018 21:25, "Dax T Games" notifications@github.com wrote:

Did you try any other commands. I doubt 'bc' is a part of git-for-windows.

On April 8, 2018 8:04:26 AM kavyarangaiah notifications@github.com
wrote:
Basic calculator...

On Apr 8, 2018 17:27, "Dax T Games" notifications@github.com wrote:

What is bc?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cmderdev/cmder/issues/610#issuecomment-379544552, or
mute
the thread
4kWOU0lANG1ks5tmfsCgaJpZM4FxtqQ>
.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cmderdev/cmder/issues/610#issuecomment-379560720, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AkaIxVQsMrJX1f47ibqiZn69JtcWXtD1ks5tmjMBgaJpZM4FxtqQ
.

bc is not part of cmder, end of story :)

Okkk.. Thanks

On Apr 9, 2018 01:02, wrote:

O

On Apr 9, 2018 01:01, "Benjamin Staneck" notifications@github.com wrote:

bc is not part of cmder, end of story :)


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cmderdev/cmder/issues/610#issuecomment-379575897,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AkaIxcleNZktUIlI5cCCoiY2MBOxegFcks5tmmV9gaJpZM4FxtqQ
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bmeverett picture bmeverett  ·  3Comments

Joe1992w picture Joe1992w  ·  3Comments

vincentntang picture vincentntang  ·  3Comments

brunowego picture brunowego  ·  3Comments

GlassGruber picture GlassGruber  ·  3Comments