Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Unix commands? #610

Closed
venatiodecorus opened this issue Aug 25, 2015 · 15 comments
Closed

No Unix commands? #610

venatiodecorus opened this issue Aug 25, 2015 · 15 comments

Comments

@venatiodecorus
Copy link

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.

@rmorrin
Copy link
Contributor

rmorrin commented Aug 25, 2015

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.

@venatiodecorus
Copy link
Author

I made sure to download the full version.

@venatiodecorus
Copy link
Author

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.

@rmorrin
Copy link
Contributor

rmorrin commented Aug 25, 2015

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.

@venatiodecorus
Copy link
Author

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?

@jankatins
Copy link
Contributor

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.

@steph-ben
Copy link

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

@kavyarangaiah
Copy link

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

@kavyarangaiah
Copy link

screenshot 163

@daxgames
Copy link
Member

daxgames commented Apr 8, 2018

What is bc?

@kavyarangaiah
Copy link

kavyarangaiah commented Apr 8, 2018 via email

@daxgames
Copy link
Member

daxgames commented Apr 8, 2018 via email

@kavyarangaiah
Copy link

kavyarangaiah commented Apr 8, 2018 via email

@Stanzilla
Copy link
Member

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

@kavyarangaiah
Copy link

kavyarangaiah commented Apr 8, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants