-
-
Notifications
You must be signed in to change notification settings - Fork 970
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
man command not found on git bash #249
Comments
Yup, no |
Ah, okay. So there's no fix? |
Not that I know of. |
As a workaround, I've installed TLDR pages and set it as the default keyword search tool with |
I add this to my .bash_profile |
so you need to add the semicolon after the function like below |
There's no |
Does anyone know a way to manually install |
Not out of the box. If you really need |
Hey thanks man. This worked like a charm. |
It's also possible to use the regular MSYS2 installer, install pacman -S git nano man-pages-posix (admittedly, not the best solution for a classroom full of people learning to use the command line for the first time)
|
Use --help. If you keep typing
|
A lot of these solutions are clever, but, if we're being honest with ourselves, they aren't going to help the "learners," as the original issue states, because the root of the problem is that Git Bash is not "real Unix." @elliotpryde's suggestion is great, but honestly which student just going through these course materials for the first time is going to be using Vim, know that you can do man page lookups within it (with K in normal mode), or even recognize that that magic command needs to go in your And that's sad, because man pages are one of the great things about a Unix environment, and it's a shame to have to go, "oh, psych, that doesn't work for you, because you have Git Bash," to which the inevitable response is "What's Git? I thought this was Unix?" The Software Carpentry course materials do, if I recall, mention that you might need to use Thing is, Git Bash is still the best thing going on Windows, for first-time learners, because MSYS2 and Cygwin are not complete solutions unless you know which packages to install. (I know, I know, there's a Linux subsystem you can enable in Windows 10, but... baby steps.) So I think I'll try to raise the issue with the Git Bash folks and see what they say. I'll report back. |
This is gonna become moot in a couple of years - once Windows 7 leaves supported status, and hence everybody is hopefully on 10, there's no longer a reason to use git bash rather than Win10's built-in Ubuntu support :-) |
@swaldman3 Does this feature really ship with Windows 10 though? As of this writing, it looks like you have to sign up for some "Windows Insider" program to get access, probably have to wait for an update to download, then find the "developer mode" switch buried in the control panel and switch that on. And of course reboot. Also, who knows whether the "Home" version of Windows 10 will even have this capability. For workshops, maybe still not as straightforward as "here, download this free program from this web site (no signup required) and install it, then click on this icon in the Start menu." |
Yes, it really ships with Windows 10, including Home editions. Has done for a couple of years now. The only question mark in my mind is at the other end of the scale, with heavily locked down Enterprise installs - but they'd probably have trouble installing git bash too. You don't have to sign up for anything. You have to enable the "Windows subsystem for linux", and then install your chosen distro through the Microsoft Store, but these are not substantially harder to follow instructions for than installing git bash - there are probably fewer options to choose - and then you end up with a (to our intents and purposes) fully functional linux distro and none of the usual weirdnesses of no man, different line endings, etc. |
Ah. Well I'll be. |
I'm still waiting for MS to mainline WSL2 before I suggest people try out WSL. With WSL you get to actually live in a *nix environment which eliminates some weirdness, but WSL(1) has its own weirdness regarding significantly slower file system IO, due to how it was implemented. |
As mentioned before...this does NOT in any way help a total newbie trying to get through learning at a camp on a MS product. |
Just to follow up on something I said I'd check into: It seems unlikely that Git for Windows (which provides Git Bash) will ever include the manual pages, based on the discussion in git-for-windows/git#696. I don't think it's a completely foregone conclusion, I just think that the maintainer himself doesn't see it as a priority, so it's unlikely to happen unless somebody (you? me?) does it for him and submits a pull request. |
command_name --help worked for me 👍 |
Thank you so much, brother |
I'm pretty sure you can simply install |
git bash is something used by classes to have a limited linux shell, and CLI access to git, in windows. |
Эта команда в Git Bach ответить на ваш вопрос ! Какой командой можно посмотреть параметры и ключи в git bash . |
man doesn't seem to be installed on git bash - learners get a "man: command not found" error when they try to use it.
The text was updated successfully, but these errors were encountered: